Commit 56653111 by Tom Christie

Remove unneeded arguments to save_object

parent 32e0e5e1
......@@ -676,13 +676,10 @@ class ModelSerializer(Serializer):
if instance:
return self.full_clean(instance)
def save_object(self, obj, parent=None, fk_field=None, **kwargs):
def save_object(self, obj, **kwargs):
"""
Save the deserialized object and return it.
"""
if parent and fk_field:
setattr(self.object, fk_field, parent)
obj.save(**kwargs)
if getattr(obj, '_m2m_data', None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment