Opened 5 years ago
Last modified 5 years ago
#31597 closed Bug
New "Clear all filters" shown always in raw_id_fields popup — at Initial Version
Reported by: | frnhr | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 3.1 |
Severity: | Release blocker | Keywords: | |
Cc: | frnhr | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
The new "Clear all filters" link does not play nice with raw_id_fields
lookup popup window. The new link is shown in the popup regardless of any filters being selected or not.
Present in 3.1a1
.
To reproduce:
- create two models,
ModelA
andModelB
- create a Foreign key field on
ModelA
pointing toModelB
- create a boolean field on
ModelB
- create a Foreign key field on
- create an admin page for
ModelA
- add the FK field to
raw_id_fields
list
- add the FK field to
- create an admin page for
ModelB
- add the boolean field to
list_filter
list
- add the boolean field to
- open the admin page in a browser
- click on the "magnifying class" icon for the
ModelB
field
- expected:
- no
X Clear all filters
link
- no
- actual:
- yes
X Clear all filters
link
- yes
Additionally, clicking the link removes _to_field
query param, which it should not do (_popup
param is correctly preserved).
Note:
See TracTickets
for help on using tickets.