Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#29088 closed Uncategorized (invalid)

Fail to perform a json lookup field search using __in syntax — at Version 2

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 Tim Graham)

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 Daniel Avelino, 7 years ago

Resolution: invalid
Status: newclosed

My fault. I don't create the iterator properly.

comment:2 by Tim Graham, 7 years ago

Component: Uncategorizedcontrib.postgres
Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top