Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

newforms-admin: Fixed #5424 -- Renamed custom 'filter' template tag s…

…o it doesn't conflict with the built-in tag. Thanks, Petr Marhoun

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d5ed482d6008c1e5826ab7426e87313e224b4f02 1 parent 29153bd
Adrian Holovaty authored September 14, 2007
2  django/contrib/admin/templates/admin/change_list.html
@@ -27,7 +27,7 @@
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 %}
4  django/contrib/admin/templatetags/admin_list.py
@@ -277,6 +277,6 @@ def search_form(cl):
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)

0 notes on commit d5ed482

Please sign in to comment.
Something went wrong with that request. Please try again.