tweaking the way data is returned (#532)

This commit is contained in:
kevgliss 2016-11-28 12:29:03 -08:00 committed by GitHub
parent b46ff4158a
commit e2143d3ee8
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ def unwrap_pagination(data, output_schema):
return data
else:
marshaled_data = {'total': data['total']}
marshaled_data['items'] = output_schema.dump(data['items'], many=True)
marshaled_data['items'] = output_schema.dump(data['items'], many=True).data
return marshaled_data
else:
return output_schema.dump(data).data