mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
This commit is contained in:
parent
55b0cc2131
commit
69a93a88ed
378 changed files with 2781 additions and 1861 deletions
|
@ -81,7 +81,8 @@ class ModelInheritanceTests(TestCase):
|
|||
Restaurant.objects.filter(supplier__name="foo")
|
||||
|
||||
def test_model_with_distinct_accessors(self):
|
||||
# The Post model has distinct accessors for the Comment and Link models.
|
||||
# The Post model has distinct accessors for the Comment and Link
|
||||
# models.
|
||||
post = Post.objects.create(title="Lorem Ipsum")
|
||||
post.attached_comment_set.create(content="Save $ on V1agr@", is_spam=True)
|
||||
post.attached_link_set.create(
|
||||
|
@ -194,7 +195,8 @@ class ModelInheritanceTests(TestCase):
|
|||
with CaptureQueriesContext(connection) as captured_queries:
|
||||
Place.objects.filter(pk=supplier.pk).update(name=supplier.name)
|
||||
expected_sql = captured_queries[0]["sql"]
|
||||
# Capture the queries executed when a subclassed model instance is saved.
|
||||
# Capture the queries executed when a subclassed model instance is
|
||||
# saved.
|
||||
with CaptureQueriesContext(connection) as captured_queries:
|
||||
supplier.save(update_fields=("name",))
|
||||
for query in captured_queries:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue