Skip to content

Commit

Permalink
Merge pull request django#301 from carlospalol/quickfix/blog-post-typo
Browse files Browse the repository at this point in the history
Fixed typo in docs
  • Loading branch information
kmtracey committed Aug 24, 2012
2 parents 6786b38 + f200ffd commit 14924ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/db/queries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -900,10 +900,10 @@ possible to easily create new instance with all fields' values copied. In the
simplest case, you can just set ``pk`` to ``None``. Using our blog example::

blog = Blog(name='My blog', tagline='Blogging is easy')
blog.save() # post.pk == 1
blog.save() # blog.pk == 1

blog.pk = None
blog.save() # post.pk == 2
blog.save() # blog.pk == 2

Things get more complicated if you use inheritance. Consider a subclass of
``Blog``::
Expand Down

0 comments on commit 14924ea

Please sign in to comment.