#30149: Empty value selected check in Admin Filter prevents subclassing
--------------------------------------+------------------------------------
Reporter: Sardorbek Imomaliev | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: admin | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by VIZZARD-X):
I have submitted a pull request that fixes this issue.
The fix updates `RelatedFieldListFilter.__init__` to explicitly handle
"false-y" string values (like `'False'` and `'0'`) in the query
parameters, ensuring they are interpreted as a boolean `False` rather than
`True`.
I have also added a regression test in `tests/admin_filters/tests.py` to
verify the fix.
PR: https://github.com/django/django/pull/20489
--
Ticket URL: <https://code.djangoproject.com/ticket/30149#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019b8428b9aa-c6f0f277-89b8-4b4b-83ed-282b5f26fa34-000000%40eu-central-1.amazonses.com.