mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #23919 -- Removed unneeded float()/int() calls.
This commit is contained in:
parent
f0ffa3f4ea
commit
d896809a3a
5 changed files with 5 additions and 5 deletions
|
@ -325,7 +325,7 @@ class DeletionTests(TestCase):
|
|||
# Calculate the number of queries needed.
|
||||
batch_size = connection.ops.bulk_batch_size(['pk'], objs)
|
||||
# The related fetches are done in batches.
|
||||
batches = int(ceil(float(len(objs)) / batch_size))
|
||||
batches = ceil(len(objs) / batch_size)
|
||||
# One query for Avatar.objects.all() and then one related fast delete for
|
||||
# each batch.
|
||||
fetches_to_mem = 1 + batches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue