Changes between Initial Version and Version 1 of Ticket #36418, comment 1


Ignore:
Timestamp:
May 26, 2025, 6:44:21 AM (3 months ago)
Author:
Clifford Gama

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36418, comment 1

    initial v1  
    4949         child = SingleObject()
    5050}}}
    51 on PostgreSQL 16.8 and Django's main branch. I get a JSON null instead of a `"null"` string. Which is surprising since JSON null is supposed to be stored through `Value(None, JSONField())` [https://docs.djangoproject.com/en/5.2/topics/db/queries/#storing-and-querying-for-none as documented here]. I'd have expected this to use SQL `NULL` instead, raising `IntegrityError`, like `update()` and `save()`.
     51on PostgreSQL 16.8 and Django's main branch. I get a JSON null instead of a `"null"` string. Are you sure you're not getting the same?
     52
     53Sidenote: that this saves a JSON null is surprising since JSON null is supposed to be stored through `Value(None, JSONField())` [https://docs.djangoproject.com/en/5.2/topics/db/queries/#storing-and-querying-for-none as documented here]. I'd have expected this to use SQL `NULL` instead, raising `IntegrityError`, like `update()` and `save()` on JSONField with `null=False`.
Back to Top