#29157: Allow querying for distinct values in JSONField lists.
     Reporter:  Hrishikesh Barman  |                    Owner:  (none)
         Type:  New feature        |                   Status:  closed
    Component:  contrib.postgres   |                  Version:  master
     Severity:  Normal             |               Resolution:  needsinfo
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
Changes (by felixxm):

 * status:  new => closed
 * resolution:   => needsinfo
 * version:  2.0 => master
 * stage:  Accepted => Unreviewed


 Using key transforms in `.values()` and `.distinct()` was fixed in #24747.
 I'm not sure if it's feasible to have querying for distinct values in
 `JSONField` lists, e.g.
 to get `<QuerySet [{'value__a': 12}, {'value__a': 'b'}]>` for
 >>> JSONModel.objects.create(value=[{"a": 12, "b": 33}, {"a": 12,
 >>> JSONModel.objects.create(value={'a': 'b', 'c': 14})

 Closing as needsinfo. I'm happy to reopen if we will get a PoC.

Ticket URL: <https://code.djangoproject.com/ticket/29157#comment:7>
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 view this discussion on the web visit 

Reply via email to