Skip to content

Commit

Permalink
[1.7.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
Browse files Browse the repository at this point in the history
Backport of 1418f75 from master
  • Loading branch information
timgraham committed Apr 22, 2015
1 parent a297af9 commit 2dc82a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/forms/modelforms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,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'

Expand Down

0 comments on commit 2dc82a8

Please sign in to comment.