mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.8.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12e from master
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user