I need something to view the queries happened ( creating or updating or deleting ) in DB tables in Django, I want it to be able to be used by the user, not at the admin panel
-
If you want suggestions for django third party packages, this is not the right place to ask. Library recommendation questions are off-topic for stack overflow. – Håken Lid Apr 30 '18 at 23:44
1 Answers
If I understand your question correctly, you are looking for a model history (sometimes also called "audit trail"). In this link there is a comparisson of different packages that can be used for audit/history of models.
As I already pointed out in this answer, I use django-simple-history which comes with a nice integration to view the list of changes of every model instance in the admin.
For my use case at least, django-simple-history provided me with what I needed, and so far I did not face any issues with it, even though this package does NOT track history of ManyToManyField
(for that see related questions like this or this or the Github issue).
Now, if you want the end user to be able to see the history (but not through the admin panel), then you would need to add a few pages for that.
For example, you could add a list view for each model using djangos generic ListView
.

- 16,086
- 4
- 44
- 68