Removed unnecessary list() call in RelatedManager.add().

This commit is contained in:
Sergey Fedoseev 2020-07-30 15:19:00 +05:00 committed by GitHub
parent e74b3d724e
commit 0b655a4bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -641,7 +641,6 @@ def create_reverse_many_to_one_manager(superclass, rel):
def add(self, *objs, bulk=True): def add(self, *objs, bulk=True):
self._remove_prefetched_objects() self._remove_prefetched_objects()
objs = list(objs)
db = router.db_for_write(self.model, instance=self.instance) db = router.db_for_write(self.model, instance=self.instance)
def check_and_update_obj(obj): def check_and_update_obj(obj):