Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#33644 closed Cleanup/optimization (fixed)

FAQ about ManyToManyField in list_filter is outdated.

Reported by: Dominik Owned by: Dominik
Component: Documentation Version: dev
Severity: Normal Keywords: FAQ Admin list filter manytomany
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

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)

comment:1 by Mariusz Felisiak, 2 years ago

Easy pickings: set
Summary: FAQ:Admin contains incorrect information regarding list-filters on ManyToManyFieldsFAQ about ManyToManyField in list_filter is outdated.
Triage Stage: UnreviewedAccepted

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?

comment:2 by Dominik, 2 years ago

Owner: changed from nobody to Dominik
Status: newassigned

Sure, it might take me a few days to get around to do it, since it's my first contribution and I might have some catching up to do.

comment:3 by Dominik, 2 years ago

Has patch: set

comment:5 by Mariusz Felisiak, 2 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 2 years ago

Resolution: fixed
Status: assignedclosed

In 7d26d5f:

Fixed #33644 -- Corrected FAQ about displaying ManyToManyField in list_filter.

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 2 years ago

In 2fc7cb9d:

[4.0.x] Fixed #33644 -- Corrected FAQ about displaying ManyToManyField in list_filter.

Backport of 7d26d5f8f17637a768f9d46e96547ae12e2418ae from main

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