=== modified file 'django/contrib/admin/templates/admin/change_list.html'
|
|
|
27 | 27 | <div id="changelist-filter"> |
28 | 28 | <h2>{% trans 'Filter' %}</h2> |
29 | 29 | {% for spec in cl.filter_specs %} |
30 | | {% filter cl spec %} |
| 30 | {% admin_list_filter cl spec %} |
31 | 31 | {% endfor %} |
32 | 32 | </div> |
33 | 33 | {% endif %} |
=== modified file 'django/contrib/admin/templatetags/admin_list.py'
|
|
|
277 | 277 | } |
278 | 278 | search_form = register.inclusion_tag('admin/search_form.html')(search_form) |
279 | 279 | |
280 | | def filter(cl, spec): |
| 280 | def admin_list_filter(cl, spec): |
281 | 281 | return {'title': spec.title(), 'choices' : list(spec.choices(cl))} |
282 | | filter = register.inclusion_tag('admin/filter.html')(filter) |
| 282 | admin_list_filter = register.inclusion_tag('admin/filter.html')(admin_list_filter) |