#35167: JSONField get_db_prep_value being called with `Cast` types
-------------------------------------+-------------------------------------
Reporter: Samantha Hughes | Owner: Jacob
| Walls
Type: Bug | Status: closed
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: JSONField | 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 Sarah Boyce <42296566+sarahboyce@…>):
In [changeset:"9525135698bd4f97cf1431776ef52ae393dfb3c0" 9525135]:
{{{#!CommitTicketReference repository=""
revision="9525135698bd4f97cf1431776ef52ae393dfb3c0"
[5.2.x] Fixed #35167 -- Delegated to super() in
JSONField.get_db_prep_save().
Avoids reports of bulk_update() sending Cast expressions
to JSONField.get_prep_value().
Co-authored-by: Simon Charette <[email protected]>
Backport of 0bf412111be686b6b23e00863f5d449d63557dbf from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35167#comment:30>
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/0107019519e51834-192d99ab-76c1-4864-83d4-60b7e42846b7-000000%40eu-central-1.amazonses.com.