diff options
| author | Tom Christie | 2014-11-19 09:31:26 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-11-19 09:31:26 +0000 |
| commit | e49d22dbda5ac889ab89f277e17752c840819de2 (patch) | |
| tree | ab5403244b16800bd9f1eb8821d312f135bf9aaf /tests/test_fields.py | |
| parent | f573aaee4eabb9bf677c350219c8feb2333a6fa1 (diff) | |
| download | django-rest-framework-e49d22dbda5ac889ab89f277e17752c840819de2.tar.bz2 | |
Allow blank choices to render. Closes #2071.
Diffstat (limited to 'tests/test_fields.py')
| -rw-r--r-- | tests/test_fields.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_fields.py b/tests/test_fields.py index 5db381ac..13525632 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -793,7 +793,8 @@ class TestChoiceField(FieldValues): 'amazing': ['`amazing` is not a valid choice.'] } outputs = { - 'good': 'good' + 'good': 'good', + '': '' } field = serializers.ChoiceField( choices=[ |
