#29088 closed Uncategorized (invalid)
Fail to perform a json lookup field search using __in syntax
Reported by: | Daniel Avelino | Owned by: | nobody |
---|---|---|---|
Component: | contrib.postgres | Version: | 2.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I'm unable to perform a lookup at my database using __in=[iterator]
fields lookup using json notation.
My json syntax is: {'risk__in': '[High,Medium]'}
hoping to lookup a risk field (defined in my models.py) which holds High,Medium and Low values.
All other json searches are performed well. It is a bug or I fail to generate json string correctly?
Unfortunately, I couldn't find any documentation related to field__in=[iterator
] ->json field lookup to clarify.
Thank you very much
Change History (2)
comment:1 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 7 years ago
Component: | Uncategorized → contrib.postgres |
---|---|
Description: | modified (diff) |
Note:
See TracTickets
for help on using tickets.
My fault. I don't create the iterator properly.