[1.8.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
Backport of 1418f75304
from master
This commit is contained in:
parent
0778f4dd82
commit
322b9c90aa
|
@ -689,7 +689,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