diff options
| author | Tom Christie | 2014-06-12 12:22:09 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-06-12 12:22:09 +0100 |
| commit | 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 (patch) | |
| tree | 6cc268279408148a61c95a63cad523dc0e6589a4 /api-guide/fields.html | |
| parent | 03ddd237c93ea5b9159260c49fd856595dbea53c (diff) | |
| download | django-rest-framework-106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'api-guide/fields.html')
| -rw-r--r-- | api-guide/fields.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api-guide/fields.html b/api-guide/fields.html index 458f879d..49e356e7 100644 --- a/api-guide/fields.html +++ b/api-guide/fields.html @@ -324,7 +324,8 @@ or <code>django.db.models.fields.TextField</code>.</p> <p>Corresponds to <code>django.db.models.fields.SlugField</code>.</p> <p><strong>Signature:</strong> <code>SlugField(max_length=50, min_length=None)</code></p> <h2 id="choicefield">ChoiceField</h2> -<p>A field that can accept a value out of a limited set of choices.</p> +<p>A field that can accept a value out of a limited set of choices. Optionally takes a <code>blank_display_value</code> parameter that customizes the display value of an empty choice.</p> +<p><strong>Signature:</strong> <code>ChoiceField(choices=(), blank_display_value=None)</code></p> <h2 id="emailfield">EmailField</h2> <p>A text representation, validates the text to be a valid e-mail address.</p> <p>Corresponds to <code>django.db.models.fields.EmailField</code></p> |
