summaryrefslogtreecommitdiff
path: root/tests/update_only_fields
diff options
context:
space:
mode:
authorAdam Chainz <me@adamj.eu>2016-11-20 23:22:13 +0000
committerTim Graham <timograham@gmail.com>2016-11-20 18:22:13 -0500
commit9d4246419ca5b913a7a9b05f18e695f10a9fd0fb (patch)
treec529e03cc880920f0e3dddd0a4de02f23d5c1a9d /tests/update_only_fields
parentcc1f6f26b68223bb5b332c774422173d7800bf80 (diff)
Refs #26207 -- Removed obsolete comments about deferred model classes.
Diffstat (limited to 'tests/update_only_fields')
-rw-r--r--tests/update_only_fields/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/update_only_fields/tests.py b/tests/update_only_fields/tests.py
index c2b809b328..7627bcd378 100644
--- a/tests/update_only_fields/tests.py
+++ b/tests/update_only_fields/tests.py
@@ -72,8 +72,7 @@ class UpdateOnlyFieldsTests(TestCase):
s1.gender = 'M'
with self.assertNumQueries(1):
s1.save()
- # The deferred class does not remember that gender was
- # set, instead the instance should remember this.
+ # save() should not fetch deferred fields
s1 = Person.objects.only('name').get(pk=s.pk)
with self.assertNumQueries(1):
s1.save()