#35752: In lookup doesn't work in filter()
-------------------------------------+-------------------------------------
     Reporter:  Csirmaz Bendegúz     |                     Type:  Bug
       Status:  new                  |                Component:  Database
                                     |  layer (models, ORM)
      Version:  dev                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 At the moment, the {{{In}}} lookup cannot be used in {{{.filter()}}}.

 The following raises an error:

 {{{
 .filter(In(F("field"), [1, 2, 3]))
 # AttributeError: 'F' object has no attribute 'output_field'
 }}}

 I believe this is a bug, {{{In}}} should work in {{{.filter()}}} similar
 to the other lookups.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35752>
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/01070191e0435549-52233f8d-1457-4c4c-a987-a241e2ebc67e-000000%40eu-central-1.amazonses.com.

Reply via email to