[1.10.x] Fixed #28266 -- Fixed typo in docs/ref/models/instances.txt.

Backport of 00093daec9 from master
This commit is contained in:
Lachlan Musicman 2017-06-02 23:17:15 +10:00 committed by Tim Graham
parent 4cb5141291
commit 7b2d4a95dc
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ are loaded from the database::
values.pop() if f.attname in field_names else DEFERRED
for f in cls._meta.concrete_fields
]
new = cls(*values)
instance = cls(*values)
instance._state.adding = False
instance._state.db = db
# customization to store the original field values on the instance