From f200ffd701468bbb983854749bee8a5ced96499c Mon Sep 17 00:00:00 2001 From: Carlos Palol Date: Thu, 23 Aug 2012 16:46:38 +0200 Subject: [PATCH] Fixed typo in docs --- docs/topics/db/queries.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index b4d4eb1062..60437c1120 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -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``::