Opened 11 years ago

Closed 11 years ago

#12207 closed (duplicate)

A hook for accessing the ChangeList instance for a ModelAdmin

Reported by: subsume@… Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


ModelAdmin's contain some helpful things such as queryset() for narrowing a queryset given to a changelist instance, however, things such as list_filter are still rather 'dumb' in comparison (You can narrow a change_list to fit a particular user's permissions, but you can't narrow the list_filter for the same purpose).

A hook that gave me access to the changelist instance for further filtering, perhaps some subclassing, would be most helpful.

Change History (3)

comment:1 Changed 11 years ago by anonymous seems related. I'm really not sure that API is preferable. Also, there may be more use-cases floating around out there besides simply the list_filter.

comment:3 Changed 11 years ago by Alex Gaynor

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top