Commit 774d687a by Stephan Groß

updated comparison due to pep8 programming recommendations

http://www.python.org/dev/peps/pep-0008/#programming-recommendations
parent 834f31ae
......@@ -460,7 +460,7 @@ class ModelSerializer(Serializer):
"""
self.m2m_data = {}
if instance:
if instance is not None:
for key, val in attrs.items():
setattr(instance, key, val)
return instance
......
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