mirror of
https://github.com/django/django.git
synced 2024-12-24 01:55:49 +00:00
[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
Block a user