Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Changed 6 years ago by Abhishek Bera

Owner: changed from nobody to Abhishek Bera
Status: newassigned

comment:2 Changed 6 years ago by Tim Graham

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

Owner: Abhishek Bera deleted
Status: assignednew

comment:4 Changed 6 years ago by Jeff Willette

Owner: set to Jeff Willette
Status: newassigned

comment:5 Changed 6 years ago by Jeff Willette

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

comment:6 Changed 6 years ago by Jeff Willette

Has patch: set

comment:7 Changed 6 years ago by Tim Graham <timograham@…>

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 Changed 6 years ago by Tim Graham <timograham@…>

In bd3dc670:

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

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