Skip to content

Commit

Permalink
Fixes a conflict with treebeard. They stole the name admin_tree_list
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Jun 9, 2015
1 parent c6b7cdd commit dd60aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion categories/editor/templates/admin/editor/tree_editor.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "admin/change_list.html" %}
{% load admin_list i18n admin_tree_list %}
{% block extrahead %}
{{block.super}}
<script type="text/javascript">
Expand Down Expand Up @@ -33,6 +32,7 @@
</script>
{% 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 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down

0 comments on commit dd60aeb

Please sign in to comment.