mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Remove CustomIdEndPointLinkRowAction
This commit is contained in:
parent
d1a38d0fb0
commit
50c03b9df2
1 changed files with 1 additions and 9 deletions
|
@ -3,7 +3,6 @@ from flask_admin import AdminIndexView, BaseView, expose
|
||||||
from flask_admin.contrib.sqla import ModelView
|
from flask_admin.contrib.sqla import ModelView
|
||||||
from flask_admin.helpers import get_form_data
|
from flask_admin.helpers import get_form_data
|
||||||
from flask_admin.model.helpers import get_mdict_item_or_list
|
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 flask_security import current_user
|
||||||
from sqlalchemy import and_, select
|
from sqlalchemy import and_, select
|
||||||
|
|
||||||
|
@ -207,6 +206,7 @@ class SecureAdminModelView(CustomModelView):
|
||||||
can_edit = True
|
can_edit = True
|
||||||
can_delete = True
|
can_delete = True
|
||||||
column_display_actions = True
|
column_display_actions = True
|
||||||
|
can_view_details = True
|
||||||
|
|
||||||
list_template = "admin_list.html"
|
list_template = "admin_list.html"
|
||||||
create_template = "admin_create.html"
|
create_template = "admin_create.html"
|
||||||
|
@ -336,11 +336,3 @@ class SecureAssistantBaseView(BaseView):
|
||||||
|
|
||||||
def is_accessible(self):
|
def is_accessible(self):
|
||||||
return assistantViewIsAccessible()
|
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)
|
|
||||||
|
|
Loading…
Reference in a new issue