diff options
| author | Tom Christie | 2014-05-20 16:03:51 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-05-20 16:03:51 +0100 |
| commit | 218b94e60696de649407f9292359e02e5daa787d (patch) | |
| tree | ec3704334b5ed9436e0a1cc45eb463dd1f6302e0 /docs/api-guide | |
| parent | d46d153a9979a96fae643a24286eacaf5c219401 (diff) | |
| parent | 1e7b5fd2c04e587e30cf29e15ca3074b8d33b92e (diff) | |
| download | django-rest-framework-218b94e60696de649407f9292359e02e5daa787d.tar.bz2 | |
Merge pull request #1536 from Ian-Foote/choicefield_blank_display_value
Allow customising ChoiceField blank display value
Diffstat (limited to 'docs/api-guide')
| -rw-r--r-- | docs/api-guide/fields.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 67fa65d2..58dbf977 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -184,7 +184,9 @@ Corresponds to `django.db.models.fields.SlugField`. ## ChoiceField -A field that can accept a value out of a limited set of choices. +A field that can accept a value out of a limited set of choices. Optionally takes a `blank_display_value` parameter that customizes the display value of an empty choice. + +**Signature:** `ChoiceField(choices=(), blank_display_value=None)` ## EmailField |
