fix flake8 warnings

This commit is contained in:
kazmiruk 2015-04-27 10:09:43 +07:00
parent 7d8c95141c
commit fad0848b7c

View File

@ -997,7 +997,7 @@ class ModelSerializer(Serializer):
if isinstance(field, GenericForeignKey): if isinstance(field, GenericForeignKey):
continue continue
if field.name in attrs: if field.name in attrs:
m2m_data[field.name] = attrs.pop(field.name) m2m_data[field.name] = attrs.pop(field.name)
# Nested forward relations - These need to be marked so we can save # Nested forward relations - These need to be marked so we can save
# them before saving the parent model instance. # them before saving the parent model instance.