Opened 8 weeks ago
Closed 8 weeks ago
#35752 closed Bug (fixed)
In lookup doesn't work in filter()
Reported by: | Csirmaz Bendegúz | Owned by: | Csirmaz Bendegúz |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Csirmaz Bendegúz | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (4)
comment:1 by , 8 weeks ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 8 weeks ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 8 weeks ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 8 weeks ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In 0bfaa55: