From 50c03b9df26f5ae3b73a39f99ff8f365b2e60b72 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Thu, 30 Jun 2022 04:06:07 +0200 Subject: [PATCH] Remove CustomIdEndPointLinkRowAction --- advlabdb/customClasses.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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)