#35381: Provide `JSONNull` expression to represent JSON `null` value
-------------------------------------+-------------------------------------
     Reporter:  Olivier Tabone       |                    Owner:  Clifford
                                     |  Gama
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Clifford Gama):

 > A wrinkle is that `__exact=None` is pretty ​clearly documented to be
 synonymous with `__isnull=True`, so by not deprecating we'd be choosing to
 memorialize something I found as a user to be a "gotcha".

 Makes sense.

 > Would you mind fleshing this out slightly, to make sure I'm catching
 your drift?

 I meant that doing `Dog(data={"name": JSONNull()}).save()}` would probably
 require us to build a custom encoder since `json.dumps()` will not
 recognise  the `JSONNull()` expression.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35381#comment:20>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070198e56180a2-0ed148a4-753d-4eeb-90b5-47d907d6dff7-000000%40eu-central-1.amazonses.com.

Reply via email to