FAQ about ManyToManyField in list_filter is outdated.
The FAQ about the admin page concerning list filters for ManyToManyFields states that the filter won't display if there are fewer than two related objects, since filtering with only a single option would be meaningless.
In reality however, the filter already displays when there is only one related object and (per default) adds a None option to filter for objects with no relations.
The FAQ should probably state that the filter disappers when there are no related objects available, since in that case only the None option would remain, which would indeed be a meaningless filter.
Change History
(7)
Easy pickings: |
set
|
Summary: |
FAQ:Admin contains incorrect information regarding list-filters on ManyToManyFields → FAQ about ManyToManyField in list_filter is outdated.
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Dominik
|
Status: |
new → assigned
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Good catch, this FAQ has not been changed since (at least) 2008, so it's a bit outdated. Would you like to prepare a patch?