mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-12 10:51:03 +00:00
actual data in history template
This commit is contained in:
parent
5ed5123836
commit
4cfe10e645
1 changed files with 12 additions and 1 deletions
|
|
@ -1,7 +1,18 @@
|
|||
{% if actions %}
|
||||
<ol>
|
||||
{% for action in actions %}
|
||||
<li>{{ action.change_message }}</li>
|
||||
<li>
|
||||
{% if action.is_addition %}
|
||||
<span class="added">+</span>
|
||||
{% elif action.is_change %}
|
||||
<span class="changed">~</span>
|
||||
{% else %}
|
||||
<span class="deleted">-</span>
|
||||
{% endif %}
|
||||
{% with action.get_edited_object as object %}
|
||||
{{ object }}
|
||||
{% endwith %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue