Closed grossir closed 1 month ago
pghistory admin list page has 3 entry points:
search.Dockets
. Looks like: http://0.0.0.0:8000/admin/search/docket/Entry point (1) would load the whole Event dataset if one does not set PGHISTORY_ADMIN_ALL_EVENTS
to False. However, one can still use a bunch of filters. For example, one could filter by all update actions across models, which would be a heavy DB hit and doesn't seem very useful.
Entry point (2) returns all the events filtered by that model. Following our example, it would load all Docket events, allowing to click filters to reduce the queryset
With the proposed changes, the Events page would look like this when accesed through (1) and (2)
I think we just want to see events per object, right? A list of all events doesn't seem useful at all?
Yes, this PR makes the pghistory events admin work only when filtering by an object ID