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.
1 parent 5779510 commit 3b7bf02Copy full SHA for 3b7bf02
simple_history/templates/simple_history/object_history.html
@@ -28,7 +28,12 @@
28
<td>{{ action.get_history_type_display }}</td>
29
<td>
30
{% if action.history_user %}
31
- <a href="{% url admin_user_view action.history_user_id %}">{{ action.history_user }}</a>
+ {% url admin_user_view action.history_user_id as admin_user_url %}
32
+ {% if admin_user_url %}
33
+ <a href="{{ admin_user_url }}">{{ action.history_user }}</a>
34
+ {% else %}
35
+ {{ action.history_user }}
36
+ {% endif %}
37
{% else %}
38
None
39
{% endif %}
0 commit comments