Fixed typo in docs/ref/models/instances.txt.

This commit is contained in:
Gary Donovan 2019-04-16 16:26:11 +10:00 committed by Mariusz Felisiak
parent 0cb4062482
commit 516d858e7a
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ primary key — then that auto-incremented value will be calculated and saved as
an attribute on your object the first time you call ``save()``:: an attribute on your object the first time you call ``save()``::
>>> b2 = Blog(name='Cheddar Talk', tagline='Thoughts on cheese.') >>> b2 = Blog(name='Cheddar Talk', tagline='Thoughts on cheese.')
>>> b2.id # Returns None, because b doesn't have an ID yet. >>> b2.id # Returns None, because b2 doesn't have an ID yet.
>>> b2.save() >>> b2.save()
>>> b2.id # Returns the ID of your new object. >>> b2.id # Returns the ID of your new object.