Opened 15 years ago

Closed 15 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

Description

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 by anonymous, 15 years ago

http://code.djangoproject.com/ticket/5833 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 by Alex Gaynor, 15 years ago

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