Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate url name for changelist_actions #111

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django_object_actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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(
Expand Down Expand Up @@ -146,7 +146,7 @@ def _get_action_urls(self):
)
),
# Dupe name is fine. https://code.djangoproject.com/ticket/14259
Copy link
Author

@predatell predatell Aug 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not work in Django 2.0 and Django 2.1

name=model_actions_url_name,
name="%s_list" % model_actions_url_name,
),
]

Expand Down