1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Remove CustomIdEndPointLinkRowAction

This commit is contained in:
Mo 2022-06-30 04:06:07 +02:00
parent d1a38d0fb0
commit 50c03b9df2

View file

@ -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)