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:
parent
29153bd5b6
commit
d5ed482d60
@ -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 %}
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user