1
0
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:
Tim Graham 2015-04-22 09:31:10 -04:00
parent 0778f4dd82
commit 322b9c90aa

View File

@ -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'