From 574a7ad080964016529b8728134e2d91aa327eb0 Mon Sep 17 00:00:00 2001 From: predatell Date: Tue, 10 Mar 2020 16:11:10 +0000 Subject: [PATCH] separate url for changelist_actions --- django_object_actions/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_object_actions/utils.py b/django_object_actions/utils.py index ae0600c..d595d73 100644 --- a/django_object_actions/utils.py +++ b/django_object_actions/utils.py @@ -70,7 +70,7 @@ def changelist_view(self, request, extra_context=None): self._get_tool_dict(action) for action in self.get_changelist_actions(request) ], - "tools_view_name": self.tools_view_name, + "tools_view_name": "%s_list" % self.tools_view_name, } ) return super(BaseDjangoObjectActions, self).changelist_view( @@ -150,7 +150,7 @@ def _get_action_urls(self): ) ), # Dupe name is fine. https://code.djangoproject.com/ticket/14259 - name=model_actions_url_name, + name="%s_list" % model_actions_url_name, ), ]