1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #26207 -- Removed obsolete comments about deferred model classes.

This commit is contained in:
Adam Chainz
2016-11-20 23:22:13 +00:00
committed by Tim Graham
parent cc1f6f26b6
commit 9d4246419c
4 changed files with 1 additions and 10 deletions

View File

@@ -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()