Document that ModelAdmin.list_filter doesn't appear unless there's more than one choice
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)
| Owner: |
changed from nobody to Abhishek Bera
|
| Status: |
new → assigned
|
| Summary: |
Expand documentation around ModelAdmin.list_filter → Document that ModelAdmin.list_filter doesn't appear unless there's more than one choice
|
| Triage Stage: |
Unreviewed → Accepted
|
| Type: |
Uncategorized → Cleanup/optimization
|
| Owner: |
Abhishek Bera removed
|
| Status: |
assigned → new
|
| Owner: |
set to Jeff Willette
|
| Status: |
new → assigned
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
I've added the requested section to the docs. https://github.com/deltaskelta/django/tree/ticket_27099