Merge pull request #1172 from brutasse/fix/return-object

Return object in save_object
This commit is contained in:
Tom Christie 2013-10-17 07:19:38 -07:00
commit 8c60471766

View File

@ -912,7 +912,7 @@ class ModelSerializer(Serializer):
def save_object(self, obj, **kwargs):
"""
Save the deserialized object and return it.
Save the deserialized object.
"""
if getattr(obj, '_nested_forward_relations', None):
# Nested relationships need to be saved before we can save the