Skip to content

Commit e9497a3

Browse files
committed
Corrected way to get URL of object in admin history template
1 parent b0d8085 commit e9497a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/contrib/admin/templates/admin/object_history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
88
&rsaquo; <a href="{% url 'admin:app_list' app_label=app_label %}">{{ app_label|capfirst|escape }}</a>
99
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ module_name }}</a>
10-
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}{{ object.pk }}">{{ object|truncatewords:"18" }}</a>
10+
&rsaquo; <a href="{% url opts|admin_urlname:'change' object.pk %}">{{ object|truncatewords:"18" }}</a>
1111
&rsaquo; {% trans 'History' %}
1212
</div>
1313
{% endblock %}

0 commit comments

Comments
 (0)