diff --git a/categories/editor/templates/admin/editor/tree_editor.html b/categories/editor/templates/admin/editor/tree_editor.html index f8cf257..9179640 100644 --- a/categories/editor/templates/admin/editor/tree_editor.html +++ b/categories/editor/templates/admin/editor/tree_editor.html @@ -1,5 +1,4 @@ {% extends "admin/change_list.html" %} -{% load admin_list i18n admin_tree_list %} {% block extrahead %} {{block.super}} {% endblock %} {% block result_list %} + {% load admin_list i18n admin_tree_list_tags %} {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} {% result_tree_list cl %} {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} diff --git a/categories/editor/templatetags/admin_tree_list.py b/categories/editor/templatetags/admin_tree_list_tags.py similarity index 97% rename from categories/editor/templatetags/admin_tree_list.py rename to categories/editor/templatetags/admin_tree_list_tags.py index 658bd41..a019b2e 100644 --- a/categories/editor/templatetags/admin_tree_list.py +++ b/categories/editor/templatetags/admin_tree_list_tags.py @@ -64,7 +64,6 @@ def items_for_tree_result(cl, result, form): if django.VERSION[1] < 4: try: f, attr, checkbox_value = lookup_field('action_checkbox', result, cl.model_admin) - #result_repr = mark_safe("%s%s" % (value, result_repr)) if row_class: row_class = "%s%s" % (row_class[:-1], ' disclosure"') else: @@ -79,7 +78,7 @@ def items_for_tree_result(cl, result, form): if django.VERSION[1] < 4: table_tag = 'td' # {True:'th', False:'td'}[first] else: - table_tag = {True:'th', False:'td'}[first] + table_tag = {True: 'th', False: 'td'}[first] url = cl.url_for_result(result) # Convert the pk to something that can be used in Javascript.