Wednesday, November 9, 2011

Serializing a model with a pickefield field

I need to serialize a django model which contains a pickefield. The
problem with this is that if I do the following:

python manage.py dumpdata myapp --indent=4 > data.json

I end up getting a data.json file with the following information in
each picklefield field:

"picklefield_field": "gAJ9cQEoVQZjb3BwZXJxAn1xAyh..."

Is there a simple way to solve this or I'd have to write a script
iterating over the models?

Thanks for your help.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate