Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#27099 closed Cleanup/optimization (fixed)

Document that ModelAdmin.list_filter doesn't appear unless there's more than one choice

Reported by: Lewis Eason Owned by: Jeff Willette
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

If there is only one possible option for a list_filter the filter won't be displayed. This is obviously the correct behaviour, but a brief note in the ModelAdmin.list_filter section mentioning this would've saved me 30 minutes with pdb!

Change History (8)

comment:1 by Abhishek Bera, 8 years ago

Owner: changed from nobody to Abhishek Bera
Status: newassigned

comment:2 by Tim Graham, 8 years ago

Summary: Expand documentation around ModelAdmin.list_filterDocument that ModelAdmin.list_filter doesn't appear unless there's more than one choice
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:3 by Abhishek Bera, 8 years ago

Owner: Abhishek Bera removed
Status: assignednew

comment:4 by Jeff Willette, 8 years ago

Owner: set to Jeff Willette
Status: newassigned

comment:5 by Jeff Willette, 8 years ago

I've added the requested section to the docs. https://github.com/deltaskelta/django/tree/ticket_27099

comment:6 by Jeff Willette, 8 years ago

Has patch: set

comment:7 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 2216cb5:

[1.10.x] Fixed #27099 -- Documented list filter's has_output() method.

Backport of bd3dc670b53d1742d317d2a088a9d145ce0083d7 from master

comment:8 by Tim Graham <timograham@…>, 8 years ago

In bd3dc670:

Fixed #27099 -- Documented list filter's has_output() method.

Note: See TracTickets for help on using tickets.
Back to Top