diff --git a/lib/vial/view/__init__.py b/lib/vial/view/__init__.py index 519375177d82234b9e82b1f51563bf021d473b3a..f9815efbd5721159fe6a651e681b7e91f4a5be20 100644 --- a/lib/vial/view/__init__.py +++ b/lib/vial/view/__init__.py @@ -1306,16 +1306,12 @@ class ItemShowView(RenderableView): # pylint: disable=locally-disabled,abstract 'home', endpoint = flask.current_app.config['ENDPOINT_HOME'] ) - if cls.module_name != 'groups' and cls.get_view_endpoint_name() != 'show_by_name': - action_menu.add_entry( - 'endpoint', - 'list', - endpoint = '{}.{}'.format( - cls.module_name, - cls.get_view_endpoint_name().replace('show', 'list') - ), - paramlist = [] - ) + action_menu.add_entry( + 'endpoint', + 'list', + endpoint = '{}.list'.format(cls.module_name), + paramlist = [] + ) action_menu.add_entry( 'endpoint', 'show', @@ -1593,10 +1589,7 @@ class ItemCreateView(ItemActionView): # pylint: disable=locally-disabled,abstra breadcrumbs_menu.add_entry( 'endpoint', 'list', - endpoint = '{}.{}'.format( - cls.module_name, - cls.get_view_endpoint_name().replace('create', 'list') - ), + endpoint = '{}.list'.format(cls.module_name) ) breadcrumbs_menu.add_entry( 'endpoint', @@ -2112,18 +2105,12 @@ class ItemUpdateView(ItemActionView): # pylint: disable=locally-disabled,abstra breadcrumbs_menu.add_entry( 'endpoint', 'list', - endpoint = '{}.{}'.format( - cls.module_name, - cls.get_view_endpoint_name().replace('update', 'list') - ) + endpoint = '{}.list'.format(cls.module_name) ) breadcrumbs_menu.add_entry( 'endpoint', 'show', - endpoint = '{}.{}'.format( - cls.module_name, - cls.get_view_endpoint_name().replace('update', 'show') - ) + endpoint = '{}.show'.format(cls.module_name) ) breadcrumbs_menu.add_entry( 'endpoint',