We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73978c9 commit 51650f8Copy full SHA for 51650f8
rest_framework/serializers.py
@@ -992,8 +992,8 @@ def _inner_loop_code(field):
992
m2m_data[field.name] = attrs.pop(field.name)
993
994
# Forward m2m relations
995
- _ = [_inner_loop_code(field) for field in meta.many_to_many]
996
- _ = [_inner_loop_code(field) for field in meta.virtual_fields]
+ [_inner_loop_code(field) for field in meta.many_to_many]
+ [_inner_loop_code(field) for field in meta.virtual_fields]
997
998
# Nested forward relations - These need to be marked so we can save
999
# them before saving the parent model instance.
0 commit comments