1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

newforms-admin: Fixed #5424 -- Renamed custom 'filter' template tag so 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
This commit is contained in:
Adrian Holovaty 2007-09-14 04:00:12 +00:00
parent 29153bd5b6
commit d5ed482d60
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<div id="changelist-filter"> <div id="changelist-filter">
<h2>{% trans 'Filter' %}</h2> <h2>{% trans 'Filter' %}</h2>
{% for spec in cl.filter_specs %} {% for spec in cl.filter_specs %}
{% filter cl spec %} {% admin_list_filter cl spec %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}

View File

@ -277,6 +277,6 @@ def search_form(cl):
} }
search_form = register.inclusion_tag('admin/search_form.html')(search_form) search_form = register.inclusion_tag('admin/search_form.html')(search_form)
def filter(cl, spec): def admin_list_filter(cl, spec):
return {'title': spec.title(), 'choices' : list(spec.choices(cl))} return {'title': spec.title(), 'choices' : list(spec.choices(cl))}
filter = register.inclusion_tag('admin/filter.html')(filter) admin_list_filter = register.inclusion_tag('admin/filter.html')(admin_list_filter)