#36371: JSONField.from_db_value crashes when DB returns parsed JSON despite KeyTransform guard -------------------------------------+------------------------------------- Reporter: Mason Pitts | Owner: (none) Type: Bug | Status: closed Component: Database layer | Version: 5.2 (models, ORM) | Resolution: Severity: Normal | worksforme Keywords: jsonfield, | Triage Stage: from_db_value, double-decoding, | Unreviewed psycopg3, cx_oracle, python- | oracledb | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Comment (by Simon Charette):
Likely related to tickets such as #31973, #32542. You possibly have a field declared as `json` on Postgres instead of `jsonb` which [https://github.com/django/django/blob/f7d97dd11819be8996798a7197c5695a317334a0/django/db/backends/postgresql/base.py#L335-L341 the ORM explicitly request not to be deserialized by the backend] to support the `JSONField.decoder` feature. -- Ticket URL: <https://code.djangoproject.com/ticket/36371#comment:2> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/django-updates/01070196a7a429f7-18a5896c-0f5d-451c-8008-04f326324fd0-000000%40eu-central-1.amazonses.com.