mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed unnecessary list() call in RelatedManager.add().
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user