mirror of
https://github.com/django/django.git
synced 2025-08-21 11:10:38 +00:00
[1.7.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12e
from master
This commit is contained in:
parent
98d8e052ea
commit
3d55798e98
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,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…
Add table
Add a link
Reference in a new issue