mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +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:
@@ -13,10 +13,10 @@ class NullFkTests(TestCase):
|
||||
c1 = Comment.objects.create(post=p, comment_text="My first comment")
|
||||
c2 = Comment.objects.create(comment_text="My second comment")
|
||||
|
||||
# Starting from comment, make sure that a .select_related(...) with a specified
|
||||
# set of fields will properly LEFT JOIN multiple levels of NULLs (and the things
|
||||
# that come after the NULLs, or else data that should exist won't). Regression
|
||||
# test for #7369.
|
||||
# Starting from comment, make sure that a .select_related(...) with a
|
||||
# specified set of fields will properly LEFT JOIN multiple levels of
|
||||
# NULLs (and the things that come after the NULLs, or else data that
|
||||
# should exist won't). Regression test for #7369.
|
||||
c = Comment.objects.select_related().get(id=c1.id)
|
||||
self.assertEqual(c.post, p)
|
||||
self.assertIsNone(Comment.objects.select_related().get(id=c2.id).post)
|
||||
|
||||
Reference in New Issue
Block a user