Skip to content

Commit 51650f8

Browse files
author
kazmiruk
committed
fix flake warning
1 parent 73978c9 commit 51650f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,8 @@ def _inner_loop_code(field):
992992
m2m_data[field.name] = attrs.pop(field.name)
993993

994994
# 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]
995+
[_inner_loop_code(field) for field in meta.many_to_many]
996+
[_inner_loop_code(field) for field in meta.virtual_fields]
997997

998998
# Nested forward relations - These need to be marked so we can save
999999
# them before saving the parent model instance.

0 commit comments

Comments
 (0)