#35071: Resolve lazy objects inside dictionaries when saving JSONFields
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Jacob
                                     |  Walls
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz):

 I think using the `encoder` arg of `JSONField` is the right answer to this
 issue. The `get_prep_value` of your suggested patch would add too much
 overhead in my opinion.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35071#comment:11>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018cc673d14e-97524239-c06a-4d8c-8850-6762a2cf7027-000000%40eu-central-1.amazonses.com.

Reply via email to