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 = 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)
|
||||||
>>> form['headline'].value()
|
>>> form['headline'].value()
|
||||||
'Initial headline'
|
'Initial headline'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue