Permalink
Browse files

Corrected way to get URL of object in admin history template

  • Loading branch information...
1 parent b0d8085 commit e9497a3803c2da2d099ad1ca403a98cdb0ee322f @spookylukey spookylukey committed Jun 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/templates/admin/object_history.html
View
2 django/contrib/admin/templates/admin/object_history.html
@@ -7,7 +7,7 @@
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
&rsaquo; <a href="{% url 'admin:app_list' app_label=app_label %}">{{ app_label|capfirst|escape }}</a>
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ module_name }}</a>
-&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}{{ object.pk }}">{{ object|truncatewords:"18" }}</a>
+&rsaquo; <a href="{% url opts|admin_urlname:'change' object.pk %}">{{ object|truncatewords:"18" }}</a>
&rsaquo; {% trans 'History' %}
</div>
{% endblock %}

0 comments on commit e9497a3

Please sign in to comment.