Opened 5 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:


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.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset 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

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.