Fixed typo in docs/ref/models/instances.txt
This commit is contained in:
parent
1a3bec4a26
commit
42f5c8f397
|
@ -86,8 +86,8 @@ from the database.
|
||||||
In addition to creating the new model, the ``from_db()`` method must set the
|
In addition to creating the new model, the ``from_db()`` method must set the
|
||||||
``adding`` and ``db`` flags in the new instance's ``_state`` attribute.
|
``adding`` and ``db`` flags in the new instance's ``_state`` attribute.
|
||||||
|
|
||||||
Below is an example showing how torecord the initial values of fields that
|
Below is an example showing how to record the initial values of fields that
|
||||||
are loaded from the database::
|
are loaded from the database::
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_db(cls, db, field_names, values):
|
def from_db(cls, db, field_names, values):
|
||||||
|
|
Loading…
Reference in New Issue