#29157: Getting Distinct Values from List in a JSONField
               Reporter:  Hrishikesh Barman  |          Owner:  (none)
                   Type:  New feature        |         Status:  new
              Component:  contrib.postgres   |        Version:  2.0
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
 We can access JSONField Data
 like this `Dog.objects.filter(data__owner__name='Bob')`

 But for JSONField consisting of a list this does not work.


 Filtering values like this works:

 size__contains=[{'a': 12,'b': 33}]

 But there is no way to get distinct values from a list in a JSONfield, for
 eg. the following does not work.
 Frame.objects.values( 'size__a')

 Should there be an implementation of the same?

Ticket URL: <https://code.djangoproject.com/ticket/29157>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to