Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
This commit is contained in:
parent
6ea9819f89
commit
1418f75304
|
@ -690,7 +690,7 @@ and values from an attached model instance. For example::
|
|||
>>> article = Article.objects.get(pk=1)
|
||||
>>> article.headline
|
||||
'My headline'
|
||||
>>> form = ArticleForm(initial={'headline': 'Initial headline'), instance=article)
|
||||
>>> form = ArticleForm(initial={'headline': 'Initial headline'}, instance=article)
|
||||
>>> form['headline'].value()
|
||||
'Initial headline'
|
||||
|
||||
|
|
Loading…
Reference in New Issue