Removed unnecessary list() call in RelatedManager.add().
This commit is contained in:
parent
e74b3d724e
commit
0b655a4bf8
|
@ -641,7 +641,6 @@ def create_reverse_many_to_one_manager(superclass, rel):
|
|||
|
||||
def add(self, *objs, bulk=True):
|
||||
self._remove_prefetched_objects()
|
||||
objs = list(objs)
|
||||
db = router.db_for_write(self.model, instance=self.instance)
|
||||
|
||||
def check_and_update_obj(obj):
|
||||
|
|
Loading…
Reference in New Issue