diff options
| author | Tim Graham <timograham@gmail.com> | 2012-07-31 16:20:41 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-08-01 08:02:01 -0400 |
| commit | a276bdebb2e8ef4619d0cb9a02b0b9f4f73ee998 (patch) | |
| tree | 5be4e7e646611588f182c58f1df12cdb6a59cb87 /docs/topics/forms | |
| parent | 751a34e4b345c303c131bf72918073ec853a66aa (diff) | |
[1.4.X] Fixed #16168 - Added note regarding type requirements when overridng ModelForm fields.
Thanks Pieter Swinkels for the patch.
Backport of ebbc414d17 from master
Diffstat (limited to 'docs/topics/forms')
| -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 d2aa8863fc..f49c9ba6df 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -443,6 +443,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. |
