#29769: Allow querying JSONField with F objects
------------------------------------+------------------------------------
     Reporter:  Gabor Körber        |                    Owner:  Mani
         Type:  New feature         |                   Status:  assigned
    Component:  contrib.postgres    |                  Version:
     Severity:  Normal              |               Resolution:
     Keywords:  F JSONField lookup  |             Triage Stage:  Accepted
    Has patch:  0                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  0
Easy pickings:  0                   |                    UI/UX:  0
------------------------------------+------------------------------------

Comment (by GwynBleidD):

 In Django 2.2 using `F` object with dicts or arrays in JSON field doesn't
 throw an error, it just cuts off anything after field name, so the result
 is the whole JSON. This means that `F` object is aware of field type, so I
 don't see any reason why we need separate expressions for that.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29769#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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.520da1db57cc46554693b5248fff52cf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to