#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.