#35381: Provide `JSONNull` expression to represent JSON `null` value
-------------------------------------+-------------------------------------
     Reporter:  Olivier Tabone       |                    Owner:  Clifford
                                     |  Gama
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):

 In [changeset:"be7f68422d4c6ae568a17f1fa91aac67d284df82" be7f6842]:
 {{{#!CommitTicketReference repository=""
 revision="be7f68422d4c6ae568a17f1fa91aac67d284df82"
 Refs #35381 -- Delegated ArrayField element prepping to
 base_field.get_db_prep_save.

 Previously, ArrayField always used base_field.get_db_prep_value when
 saving,
 which could differ from how base_field prepares data for save. This change
 overrides ArrayField.get_db_prep_save to delegate to the base_field's
 get_db_prep_save, ensuring elements like None in JSONField arrays are
 saved
 correctly as SQL NULL instead of JSON null.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35381#comment:33>
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/0107019a31583a5d-76cca845-375a-4a8a-85df-4102efac8ead-000000%40eu-central-1.amazonses.com.

Reply via email to