from advlabdb import admin from advlabdb.customClasses import ModelView from advlabdb.models import * admin.add_view(ModelView(Student, db.session)) admin.add_view(ModelView(PartStudent, db.session)) admin.add_view(ModelView(Group, db.session)) admin.add_view(ModelView(GroupExperiment, db.session)) admin.add_view(ModelView(Experiment, db.session)) admin.add_view(ModelView(PartExperiment, db.session)) admin.add_view(ModelView(Assistant, db.session)) admin.add_view(ModelView(Appointment, db.session)) admin.add_view(ModelView(Part, db.session)) admin.add_view(ModelView(Semester, db.session)) admin.add_view(ModelView(ExperimentMark, db.session)) admin.add_view(ModelView(User, db.session)) admin.add_view(ModelView(Role, db.session))