diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index b107b53b15..383284ad9b 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -691,7 +691,7 @@ and values from an attached model instance. For example:: >>> article.headline 'My headline' >>> form = ArticleForm(initial={'headline': 'Initial headline'), instance=article) - >>> form['pub_date'].value() + >>> form['headline'].value() 'Initial headline' .. _modelforms-factory: