Removed unused 'field' argument to DeleteQuery.delete_batch().

Unused since a170c3f755.
This commit is contained in:
Tim Graham 2016-10-15 10:19:02 -04:00 committed by GitHub
parent af98a0a25e
commit 5d1941adcf
1 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class DeleteQuery(Query):
cursor = self.get_compiler(using).execute_sql(CURSOR)
return cursor.rowcount if cursor else 0
def delete_batch(self, pk_list, using, field=None):
def delete_batch(self, pk_list, using):
"""
Set up and execute delete queries for all the objects in pk_list.
@ -37,7 +37,6 @@ class DeleteQuery(Query):
"""
# number of objects deleted
num_deleted = 0
if not field:
field = self.get_meta().pk
for offset in range(0, len(pk_list), GET_ITERATOR_CHUNK_SIZE):
self.where = self.where_class()