#26949: Disabled forms.JSONField crashes with TypeError
----------------------------------+------------------------------------
     Reporter:  timgraham         |                    Owner:  alexyer
         Type:  Bug               |                   Status:  assigned
    Component:  contrib.postgres  |                  Version:  1.9
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by alexyer):

 * Attachment "0001-Fix-disabled-forms.JSONField-crash-with-
 TypeError.patch" added.

 As I see the problem with previous fix was because assumption that initial
 values are already cleaned is wrong. I added these lines to omit
 `json.loads()` for disable field. But I think that's the obvious fix,
 means there are downsides here if it's not been done before, so I'm not
 sure about it. Could you, please, advice what could be wrong with this
 approach? Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/26949>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.6124708b5fb96dd9cb5e72a55b575580%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to