Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16291 -- Documented that TypedChoiceField does not coerce empt…

…y_value. Thanks to vanschelven and taavi223.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4e47df9de20ab12070fcb92ef2176ece7847e5f5 1 parent 9fe050a
Julien Phalip authored September 12, 2011

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  docs/ref/forms/fields.txt
4  docs/ref/forms/fields.txt
@@ -379,7 +379,9 @@ Takes extra arguments:
379 379
 .. attribute:: TypedChoiceField.empty_value
380 380
 
381 381
     The value to use to represent "empty." Defaults to the empty string;
382  
-    ``None`` is another common choice here.
  382
+    ``None`` is another common choice here. Note that this value will not be
  383
+    coerced by the function given in the ``coerce`` argument, so choose it
  384
+    accordingly.
383 385
 
384 386
 ``DateField``
385 387
 ~~~~~~~~~~~~~

0 notes on commit 4e47df9

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