Output tastypie api json with indentation for now.
- Legacy-Id: 8985
This commit is contained in:
parent
bd2cb8baaa
commit
85945683dc
|
@ -371,7 +371,7 @@ class Serializer(object):
|
|||
options = options or {}
|
||||
data = self.to_simple(data, options)
|
||||
|
||||
return djangojson.json.dumps(data, cls=djangojson.DjangoJSONEncoder, sort_keys=True, ensure_ascii=False)
|
||||
return djangojson.json.dumps(data, cls=djangojson.DjangoJSONEncoder, sort_keys=True, ensure_ascii=False, indent=2)
|
||||
|
||||
def from_json(self, content):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue