import jsond = {'key':u'value'}print dprint json.dumps(d, indent=4)
Meaning that the form, or more the form values, rendered by DRF are not accepted by it if submitted.
--
You received this message because you are subscribed to the Google Groups "django-rest-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
"data": "{\"domain\": \"andyfreeland.com\"}",
{u'domain': u'andyfreeland.com'}
Not the OP, but I'm working on the same thing: https://gist.github.com/rouge8/5445149The issue is that if I provide the `to_native` method like that, my field ends up like this:"data": "{\"domain\": \"andyfreeland.com\"}",
But if I leave out the `to_native` method, the data field in the browsable API displays invalid JSON:{u'domain': u'andyfreeland.com'}
--
You received this message because you are subscribed to a topic in the Google Groups "django-rest-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-rest-framework/n0sLMpW4TqU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to django-rest-fram...@googlegroups.com.
{u'domain': u'andyfreeland.com'}in the browsable API, but at least this way I can edit objects through the browsable API.
To unsubscribe from this group and all its topics, send an email to django-rest-framework+unsub...@googlegroups.com.