Skip to content

Commit

Permalink
fix set method for ArrayReferenceManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavan72 committed Dec 21, 2021
1 parent 4c1ae33 commit cb1ea26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djongo/models/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def set(self, objs, *, clear=False):
for obj in objs:
if getattr(obj, rh_field.get_attname()) not in fks:
to_add.append(obj)
self.add(to_add)
self.add(*to_add)

set.alters_data = True

Expand Down

0 comments on commit cb1ea26

Please sign in to comment.