Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16168 - Added note regarding type requirements when overridng …

…ModelForm fields.

Thanks Pieter Swinkels for the patch.
  • Loading branch information...
commit ebbc414d1729f24e395ee050a62276229c59d75d 1 parent 964979e
Tim Graham authored July 31, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  docs/topics/forms/modelforms.txt
4  docs/topics/forms/modelforms.txt
@@ -437,6 +437,10 @@ parameter when declaring the form field::
437 437
             class Meta:
438 438
                 model = Article
439 439
 
  440
+    You must ensure that the type of the form field can be used to set the
  441
+    contents of the corresponding model field. When they are not compatible,
  442
+    you will get a ``ValueError`` as no implicit conversion takes place.
  443
+
440 444
     See the :doc:`form field documentation </ref/forms/fields>` for more information
441 445
     on fields and their arguments.
442 446
 

0 notes on commit ebbc414

Please sign in to comment.
Something went wrong with that request. Please try again.