diff --git a/advlabdb/customClasses.py b/advlabdb/customClasses.py index 6368bf7..fa3f2c9 100644 --- a/advlabdb/customClasses.py +++ b/advlabdb/customClasses.py @@ -3,7 +3,6 @@ from flask_admin import AdminIndexView, BaseView, expose from flask_admin.contrib.sqla import ModelView from flask_admin.helpers import get_form_data from flask_admin.model.helpers import get_mdict_item_or_list -from flask_admin.model.template import EndpointLinkRowAction from flask_security import current_user from sqlalchemy import and_, select @@ -207,6 +206,7 @@ class SecureAdminModelView(CustomModelView): can_edit = True can_delete = True column_display_actions = True + can_view_details = True list_template = "admin_list.html" create_template = "admin_create.html" @@ -336,11 +336,3 @@ class SecureAssistantBaseView(BaseView): def is_accessible(self): return assistantViewIsAccessible() - - -class CustomIdEndpointLinkRowAction(EndpointLinkRowAction): - def customId(self, row): - raise NotImplementedError() - - def render(self, context, row_id, row): - return super().render(context, self.customId(row), row)