Opened 6 years ago

Closed 5 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: UI/UX:

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 Changed 6 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 Changed 5 years ago by Alex

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top