Commit fad0848b by kazmiruk

fix flake8 warnings

parent 7d8c9514
...@@ -997,7 +997,7 @@ class ModelSerializer(Serializer): ...@@ -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.
......
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