File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
templates/django_object_actions Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
{% block object-tools-items %}
5
5
{% for tool in objectactions %}
6
6
< li class ="objectaction-item " data-tool-name ="{{ tool.name }} ">
7
- < a href ='{%url tools_view_name pk=object_id tool=tool.name %} ' title ="{{ tool.standard_attrs.title }} "
7
+ < a href ='{% url tools_view_name pk=object_id tool=tool.name %} ' title ="{{ tool.standard_attrs.title }} "
8
8
{% for k, v in tool.custom_attrs.items %}
9
9
{{ k }} ="{{ v }} "
10
10
{% endfor %}
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ def get_tool_urls(self, urls):
22
22
tools = {}
23
23
24
24
end = '_change'
25
- for u in urls :
26
- if u .name .endswith (end ):
27
- tools_view = u .name [:- len (end )] + '_tools'
28
- change_view = 'admin:' + u .name
25
+ for url_pattern in urls :
26
+ if url_pattern .name .endswith (end ):
27
+ tools_view = url_pattern .name [:- len (end )] + '_tools'
28
+ change_view = 'admin:' + url_pattern .name
29
29
self .tools_view_name = 'admin:' + tools_view
30
30
break
31
31
You can’t perform that action at this time.
0 commit comments