diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index eceaea81cdc..fb95750db31 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -690,7 +690,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: