Skip to content

Commit a87173b

Browse files
committed
Fixes issue django-polymorphic#8: Breadcrumbs uses title attribute instead of __unicode__()
1 parent 4e18f62 commit a87173b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymorphic_tree/templates/admin/polymorphic_tree/change_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo;
99
{% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo;
1010
{% for p in original|mptt_breadcrumb %}
11-
<a href="../{{ p.id }}/">{{ p.title }}</a> &rsaquo;
11+
<a href="../{{ p.id }}/">{{ p }}</a> &rsaquo;
1212
{% endfor %}
1313
{% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
1414
</div>

0 commit comments

Comments
 (0)