mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 20:46:23 +03:00
12 lines
333 B
Python
12 lines
333 B
Python
from flask_admin import Admin
|
|
from flask_admin.contrib.sqla import ModelView
|
|
|
|
|
|
class CommonAdminView(ModelView):
|
|
def __init__(self, model, *args, **kwargs):
|
|
self.column_list = [c.key for c in model.__table__.columns]
|
|
super(CommonAdminView, self).__init__(model, *args, **kwargs)
|
|
|
|
|
|
admin = Admin(name="TextSouls")
|