[1.5.x] Negligible style fix in docs.

Backport of 5c81e9d.
This commit is contained in:
Aymeric Augustin 2012-11-23 20:40:42 +01:00
parent 90c7aa0740
commit a79e4521e5
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ Things get more complicated if you use inheritance. Consider a subclass of
class ThemeBlog(Blog):
theme = models.CharField(max_length=200)
django_blog = ThemeBlog(name='Django', tagline='Django is easy', theme = 'python')
django_blog = ThemeBlog(name='Django', tagline='Django is easy', theme='python')
django_blog.save() # django_blog.pk == 3
Due to how inheritance works, you have to set both ``pk`` and ``id`` to None::