Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mcvpraveen opened this issue Mar 19, 2024 · 4 comments
Open

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

mcvpraveen opened this issue Mar 19, 2024 · 4 comments
Labels
General enquiry/help Not a bug, not a feature, an enquiry, might result in a docs update

Comments

@mcvpraveen
Copy link

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
@jamesgilmorelyst jamesgilmorelyst added the General enquiry/help Not a bug, not a feature, an enquiry, might result in a docs update label Mar 23, 2024
@jamesgilmorelyst
Copy link

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.

@farridav
Copy link
Owner

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..

@mcvpraveen
Copy link
Author

@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?

@farridav
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General enquiry/help Not a bug, not a feature, an enquiry, might result in a docs update
Projects
None yet
Development

No branches or pull requests

3 participants