#35316: Support scalars as query parameters in admin changelist filters (for
backward compatibility).
-----------------------------------------+------------------------
               Reporter:  m000           |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  contrib.admin  |        Version:  5.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  1
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  1
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Ticket #1873 added support for multi-valued query parameters in admin
 changelist filters. Because only list types are supported, older code that
 e.g. extends SimpleListFilter or BooleanFieldListFilter will break.

 The latter (extending BooleanFieldListFilter) may even be completely
 unsupported. See notes in PR for #1873.

 Overall, user code needs to introduce version conditionals if it is
 required to support both Django 4.x and Django 5. The reason is that
 Django 4.x only supports scalar types as query parameter values, while
 Django 5 only supports lists.

 Since supporting both scalars and lists should be possible without adding
 complexity to the Django codebase, it would be good to continue supporting
 scalars, perhaps with a deprecation warning, if necessary.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35316>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e52bb0113-7ee71bb9-72b4-43c1-bbee-73b5bbd662c6-000000%40eu-central-1.amazonses.com.

Reply via email to