Skip to content

Commit 9c1d86a

Browse files
committed
Use admin_urls for action links in admin history list
1 parent bcd316b commit 9c1d86a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

simple_history/templates/simple_history/object_history.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "admin/object_history.html" %}
22
{% load i18n %}
33
{% load url from future %}
4+
{% load admin_urls %}
45

56

67
{% block content %}
@@ -22,7 +23,7 @@
2223
<tbody>
2324
{% for action in action_list %}
2425
<tr>
25-
<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>
2627
<td>{{ action.history_date }}</td>
2728
<td>{{ action.get_history_type_display }}</td>
2829
<td>

0 commit comments

Comments
 (0)