#33644: FAQ:Admin contains incorrect information regarding list-filters on
ManyToManyFields
-------------------------------------+-------------------------------------
Reporter: Dominik | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: | Version: dev
Documentation | Keywords: FAQ Admin list
Severity: Normal | filter manytomany
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The FAQ about the admin page concerning
[
https://docs.djangoproject.com/en/dev/faq/admin/#my-list-filter- contains-a-manytomanyfield-but-the-filter-doesn-t-display 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/33644>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.