#27675: Django postgres JSONField encoding
-------------------------------------+-------------------------------------
               Reporter:  Hisham     |          Owner:  nobody
  Waleed Karam                       |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  1.10
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:  models JSONField
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 i have JSONField in a model this field store json in 'utf8' but when i am
 trying to get the value of this field it escaped

 model field:

 {{{

 details = JSONField(blank=True, default={})
 }}}

 database row:
 [[Image(http://i.imgur.com/GVKprEK.png)]]

 code :


 {{{
 from stores.models import Item
 i=Item.objects.all()[0]
 i.details
 }}}

 output in console and django admin: i want django to show details without
 escaping

 {u'\u0633\u064a\u0628': u'\u0634\u0633\u064a'}

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

Reply via email to