diff --git a/app/admin_model.py b/app/admin_model.py index 5da29adf..494b1096 100644 --- a/app/admin_model.py +++ b/app/admin_model.py @@ -134,6 +134,7 @@ def manual_upgrade(way: str, ids: [int], is_giveaway: bool): class EmailLogAdmin(SLModelView): column_searchable_list = ["id"] + column_filters = ["id", "user.email", "mailbox.email", "contact.website_email"] can_edit = False can_create = False diff --git a/server.py b/server.py index b929f380..45aa56c6 100644 --- a/server.py +++ b/server.py @@ -143,6 +143,9 @@ def create_app() -> Flask: app.config["TEMPLATES_AUTO_RELOAD"] = True + # to have a "fluid" layout for admin + app.config["FLASK_ADMIN_FLUID_LAYOUT"] = True + # to avoid conflict with other cookie app.config["SESSION_COOKIE_NAME"] = SESSION_COOKIE_NAME if URL.startswith("https"):