diff options
| author | Tim Graham <timograham@gmail.com> | 2012-07-31 16:20:41 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-08-01 07:59:28 -0400 |
| commit | ebbc414d1729f24e395ee050a62276229c59d75d (patch) | |
| tree | d93b8ed05d0a7422fe04b28b6f4e11089b2a739e /docs | |
| parent | 964979e8ecec3ceccb2119ccb7270111b953611e (diff) | |
Fixed #16168 - Added note regarding type requirements when overridng ModelForm fields.
Thanks Pieter Swinkels for the patch.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 4cfde400a7..0ca37745c7 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -437,6 +437,10 @@ parameter when declaring the form field:: class Meta: model = Article + You must ensure that the type of the form field can be used to set the + contents of the corresponding model field. When they are not compatible, + you will get a ``ValueError`` as no implicit conversion takes place. + See the :doc:`form field documentation </ref/forms/fields>` for more information on fields and their arguments. |
