Output tastypie api json with indentation for now.

- Legacy-Id: 8985
This commit is contained in:
Henrik Levkowetz 2015-02-05 08:17:35 +00:00
parent bd2cb8baaa
commit 85945683dc

View file

@ -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):
"""