summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/modelforms.txt4
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.