#35316: Support scalars as query parameters in admin changelist filters (for
backward compatibility).
-------------------------------------+-------------------------------------
     Reporter:  Manolis              |                    Owner:  nobody
  Stamatogiannakis                   |
         Type:  Uncategorized        |                   Status:  closed
    Component:  contrib.admin        |                  Version:  5.0
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Manolis Stamatogiannakis):

 Replying to [comment:3 Mariusz Felisiak]:
 > Why don't you set a value directly?
 > {{{#!python
 > self.used_parameters[self.lookup_kwarg] = True
 > }}}

 For the benefit of anyone else that may arrive here having a similar
 problem, this still needs a version-based conditional.

 If `prepare_lookup_value()` is ever made a sanctioned API, maybe it would
 be a more appropriate location to provide a fix for keeping existing
 Django 4 filter customization code working in Django 5.

 EOT
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35316#comment:4>
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/0107018e55e65c37-e846a605-5b72-4a1b-998f-f412c46ba105-000000%40eu-central-1.amazonses.com.

Reply via email to