{'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
--
Ticket URL: <https://code.djangoproject.com/ticket/29088>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
My fault. I don't create the iterator properly.
--
Ticket URL: <https://code.djangoproject.com/ticket/29088#comment:1>
* component: Uncategorized => contrib.postgres
Old description:
> 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
New description:
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
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29088#comment:2>