farridav/django-jazzmin

How to see the recent changes along with model/table names,

Opened this issue · 4 comments

How to enable to see from which app these recent changes have been done? This info can be seen from the default Django admin. Please check the screenshots.

Screenshot 2024-03-19 at 4 01 44 PM Screenshot 2024-03-19 at 4 03 53 PM

This seems to be an issue with delete events, as other events are showing.

There seems to be explicit logic to ignore which model change for delete events:

{% if not entry.is_deletion %}
<div class="timeline-body">
{% if entry.is_addition %}
{{ entry }}
{% else %}
<ul style="list-style: none; padding: 0;">
{% action_message_to_list entry as action_message_list %}
{% for action_message in action_message_list %}
<li>{{ action_message.msg|style_bold_first_word }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endif %}

Maybe @farridav know more behind the reasoning for this.

I think that the Django version at the time had either no information for deleted events, or it was largely useless.

That said, I'm not against us restoring this, we will just need to ensure that it renders correctly and makes sense finally Django versions..

@farridav @jamesgilmorelyst The issue is not only with deleted events; changing events also only provide a hyperlink without indicating the table in which the change occurred. To determine this, we must open the hyperlink and view the row details page. Can you please make the changes to show the table names also in all recent action events?

Sure, the goal is to enhance the stock admin, so we will aim to replicate the Django default behaviour and not degrade it