Show history of all model instances in same page

Skip to first unread message

May 10, 2016, 5:12:19 PM5/10/16
to django-reversion discussion group

I don't know if it's possible but I'm looking for a simple way to list the versions/revisions of all instances of a Model in a single page.

Let my explain better.
Right now I'm using django-reversion with the basic admin integration (I've followed the Getting Started guide).
From the model page in the admin /admin/<app>/<my_model>/ I can restore the deleted instances, but to see the history of revisions I've to search the correct instance, open it (/admin/<app>/<my_model>/<id>/), click history /admin/<app>/<my_model>/<id>/history, where I can view the edits only for that particular instance.

I'm looking for a way to implement a page like /admin/<app>/<my_model>/history that list all revisions of all instances for my_model.
I basically need to create this sort of report for auditing reasons (list all recent edits and view who made them).


Dave Hall

May 11, 2016, 5:09:35 AM5/11/16
to django-reversion discussion group
Find all versions for a given model class:

from reversion.models import Version

You received this message because you are subscribed to the Google Groups "django-reversion discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

May 17, 2016, 2:40:19 PM5/17/16
to django-reversion discussion group
Thank you Dave for the tip.
With your query I've managed to create a simple page with the edits as I wanted.

Reply all
Reply to author
0 new messages