from flask.ext.admin.contrib.sqla import ModelView
from flask.ext.admin import Admin

from .models import User, Work, Company, Resume


class AdminRequiredView(ModelView):
    def is_accessible(self):
        return True


def register_admin(app, db):
    admin = Admin(app, endpoint='admin')
    admin.add_view(AdminRequiredView(User, db.session))
    admin.add_view(AdminRequiredView(Work, db.session))
    admin.add_view(AdminRequiredView(Company, db.session))
    admin.add_view(AdminRequiredView(Resume, db.session))
@@ -1,28 +1,54 @@
+from flask import url_for%0A
 from flask.ext.admin.contrib
@@ -70,16 +70,16 @@
 delView%0A
-
 from fla
@@ -310,16 +310,44 @@
 ='admin'
+, template_mode='bootstrap3'
 )%0A    ad
@@ -503,32 +503,32 @@
 y, db.session))%0A
-
     admin.add_vi
@@ -556,20 +556,21 @@
 Resume, db.session))
+%0A

Change admin theme to bootstrap3