1
0
mirror of https://github.com/django/django.git synced 2025-07-29 22:19:13 +00:00

[1.7.x] Fixed typo in docs/topics/forms/modelforms.txt

Backport of 19e41a9799079ddae3ba94f95d25577ab4232037 from master
This commit is contained in:
SaeX 2015-03-28 11:06:40 +01:00 committed by Tim Graham
parent da07f4b08f
commit bd542cbff6

View File

@ -694,7 +694,7 @@ specifying an ``initial`` parameter when instantiating the form. Initial
values provided this way will override both initial values from the form field values provided this way will override both initial values from the form field
and values from an attached model instance. For example:: and values from an attached model instance. For example::
>>> article = Article.objects.get(pk1=) >>> article = Article.objects.get(pk=1)
>>> article.headline >>> article.headline
'My headline' 'My headline'
>>> form = ArticleForm(initial={'headline': 'Initial headline'), instance=article) >>> form = ArticleForm(initial={'headline': 'Initial headline'), instance=article)