{% regroup action_list|dictsortreversed:"action_time" by action_time.date as actions_date_list %}
{% for item in actions_date_list %}
{% ifchanged %}
{{ item.grouper|date:"Y" }}
{% endifchanged %}
{{ item.grouper|date:"d" }}
{{ item.grouper|date:"M" }}
{% endfor %}
{% trans 'Date/time' %} | {% trans 'User' %} | {% trans 'Action' %} |
---|---|---|
{{ action.action_time|date:"H:i" }} | {{ action.user.get_username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %} | {{ action.get_change_message }} |