#25532: JSONField form field double encodes
----------------------------------+-------------------
     Reporter:  davidszotten      |      Owner:
         Type:  Bug               |     Status:  new
    Component:  contrib.postgres  |    Version:  1.9a1
     Severity:  Normal            |   Keywords:
 Triage Stage:  Unreviewed        |  Has patch:  0
Easy pickings:  0                 |      UI/UX:  0
----------------------------------+-------------------
 the JSONField form field double-encodes invalid json strings,

 e.g. entering the string `{"foo"}` and submitting the form, it comes back
 with an error, but the form field populated with the string `"{\"foo\"}"`

 not sure how to fix, since `prepare_value` doesn't know if we have valid
 json (and we, like postgres, but unlike the json spec consider bare
 strings as valid json)

--
Ticket URL: <https://code.djangoproject.com/ticket/25532>
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/055.d34150cfef7bc02e1612f74ae31bf2f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to