mirror of https://github.com/django/django.git
Fixed typo in docs/topics/forms/modelforms.txt.
This commit is contained in:
parent
bb581f62ab
commit
6ff826e12e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue