Changes between Version 3 and Version 4 of Ticket #36371, comment 2


Ignore:
Timestamp:
May 6, 2025, 5:12:33 PM (4 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36371, comment 2

    v3 v4  
    33You're likely using Postgres and have the column your `JSONField` is pointed at defined with a `json` type instead of `jsonb` (not something created by Django itself as it never used the `json` type).
    44
    5 [https://github.com/django/django/blob/f7d97dd11819be8996798a7197c5695a317334a0/django/db/backends/postgresql/base.py#L335-L341 The ORM explicitly request] `jsonb` columns not to be deserialized by the backend (`psycopg2` and `psycopg`) to support the `JSONField.decoder` feature.
     5[https://github.com/django/django/blob/f7d97dd11819be8996798a7197c5695a317334a0/django/db/backends/postgresql/base.py#L335-L341 The ORM explicitly request] `jsonb` columns not to be deserialized by the backend (`psycopg2` and `psycopg`) to support the `JSONField.decoder` feature but since it doesn't use `json` columns internally it leaves them as is.
Back to Top