We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
admin_urls
1 parent bcd316b commit 9c1d86aCopy full SHA for 9c1d86a
simple_history/templates/simple_history/object_history.html
@@ -1,6 +1,7 @@
1
{% extends "admin/object_history.html" %}
2
{% load i18n %}
3
{% load url from future %}
4
+{% load admin_urls %}
5
6
7
{% block content %}
@@ -22,7 +23,7 @@
22
23
<tbody>
24
{% for action in action_list %}
25
<tr>
- <td><a href="{{ action.revert_url }}">{{ action.history_object }}</a></td>
26
+ <td><a href="{% url opts|admin_urlname:'simple_history' object.pk action.pk %}">{{ action.history_object }}</a></td>
27
<td>{{ action.history_date }}</td>
28
<td>{{ action.get_history_type_display }}</td>
29
<td>
0 commit comments