Changeset 4353
- Timestamp:
- 01/18/07 21:51:41 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/admin/templates/admin/change_list.html
r4351 r4353 22 22 {% block search %}{% search_form cl %}{% endblock %} 23 23 {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} 24 {% block filters %}{% filters cl %}{% endblock %} 24 25 {% block filters %} 26 {% if cl.has_filters %} 27 <div id="changelist-filter"> 28 <h2>{% trans 'Filter' %}</h2> 29 {% for spec in cl.filter_specs %} 30 {% filter cl spec %} 31 {% endfor %} 32 </div> 33 {% endif %} 34 {% endblock %} 35 25 36 {% block result_list %}{% result_list cl %}{% endblock %} 26 37 {% block pagination %}{% pagination cl %}{% endblock %} django/branches/newforms-admin/django/contrib/admin/templatetags/admin_list.py
r4332 r4353 265 265 return {'title': spec.title(), 'choices' : list(spec.choices(cl))} 266 266 filter = register.inclusion_tag('admin/filter.html')(filter) 267 268 def filters(cl):269 return {'cl': cl}270 filters = register.inclusion_tag('admin/filters.html')(filters)
