summaryrefslogtreecommitdiff
path: root/tests/null_fk/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/null_fk/tests.py')
-rw-r--r--tests/null_fk/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/null_fk/tests.py b/tests/null_fk/tests.py
index 9bf5f93f6c..ac7f7a8289 100644
--- a/tests/null_fk/tests.py
+++ b/tests/null_fk/tests.py
@@ -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)