Hi Mallik,
Write a Custom Method to do it.

On Thu, Jun 8, 2017 at 3:21 PM, Mallik Sai <malliksa...@gmail.com> wrote:

> I have a JSON Field in my model and I want to get a particular Key value
> which is present in the JSON Field using values().
>
> lets assume my JOSN Field data is like { 'key1':value1 , 'key2':value2
> ,'key3':value3 }
>
> I want to give the query like MyModel.objects.values('field1' , 'field2'
> , 'key2(which is present in Json Field)')
>
> Please help me whether I can get in using values() or How can I override
> the values() functionality
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/127677de-e547-47cc-802f-9c59b5ebf839%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/127677de-e547-47cc-802f-9c59b5ebf839%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGGVXBM7y0iE1q2%3D%3D-P%3DFbK4-wFDH3UUDXG71f%2BnkdB8SvnJRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to