Friday, December 27, 2013

djorm-ext-pgjson field value returned by queryset as string not dict

Hello, django users!

I'm using PostgreSQL 9.3.2 with django 1.5.5.  I've created a model with JSONField from djorm-ext-pgjson.  
After migrating with south I can see my field type is json in postgres.
Then I've put some data and queried for it. On my development laptop I get dict in my json field as I expected.   
Then I did the same thing on my test server, same version of DB, django, libraries. 
psql shows that field type is json.  

But somehow it gives me json field as str.   

Is there anyone who might get throw this kind of issue?    Or may be you can tell me where do I start digging into this?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2eab52b3-fa7a-4761-bc30-ee02f5b39ec1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment