mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Refs #36500 -- Shortened some long docstrings and comments.
Manually reformatted some long docstrings and comments that would be damaged by the to-be-applied autofixer script, in cases where editorial judgment seemed necessary for style or wording changes.
This commit is contained in:
parent
5527df9192
commit
55b0cc2131
44 changed files with 157 additions and 118 deletions
|
|
@ -493,7 +493,7 @@ class DeletionTests(TestCase):
|
|||
# and there are no more cascades.
|
||||
# 1 query to find the users for the avatar.
|
||||
# 1 query to delete the user
|
||||
# 1 query to null out user.avatar, because we can't defer the constraint
|
||||
# 1 query to null out user.avatar, since we can't defer the constraint
|
||||
# 1 query to delete the avatar
|
||||
self.assertNumQueries(4, a.delete)
|
||||
self.assertFalse(User.objects.exists())
|
||||
|
|
@ -536,7 +536,7 @@ class DeletionTests(TestCase):
|
|||
|
||||
# TEST_SIZE / batch_size (select related `T` instances)
|
||||
# + 1 (select related `U` instances)
|
||||
# + TEST_SIZE / GET_ITERATOR_CHUNK_SIZE (delete `T` instances in batches)
|
||||
# + TEST_SIZE / GET_ITERATOR_CHUNK_SIZE (delete `T` matches in batches)
|
||||
# + 1 (delete `s`)
|
||||
expected_num_queries = ceil(TEST_SIZE / batch_size)
|
||||
expected_num_queries += ceil(TEST_SIZE / GET_ITERATOR_CHUNK_SIZE) + 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue