improve admin
This commit is contained in:
parent
70cc920ce8
commit
2293c6d2e3
|
@ -10,6 +10,7 @@ from app.models import User, ManualSubscription
|
||||||
|
|
||||||
class SLModelView(sqla.ModelView):
|
class SLModelView(sqla.ModelView):
|
||||||
column_default_sort = ("id", True)
|
column_default_sort = ("id", True)
|
||||||
|
column_display_pk = True
|
||||||
|
|
||||||
can_edit = False
|
can_edit = False
|
||||||
can_create = False
|
can_create = False
|
||||||
|
@ -74,7 +75,7 @@ class UserAdmin(SLModelView):
|
||||||
|
|
||||||
|
|
||||||
class EmailLogAdmin(SLModelView):
|
class EmailLogAdmin(SLModelView):
|
||||||
column_searchable_list = ["id", "user.email", "contact.website_email"]
|
column_searchable_list = ["id"]
|
||||||
|
|
||||||
can_edit = False
|
can_edit = False
|
||||||
can_create = False
|
can_create = False
|
||||||
|
|
Loading…
Reference in New Issue