diff options
| author | Joel Marcotte | 2012-12-15 16:52:28 -0500 |
|---|---|---|
| committer | Joel Marcotte | 2012-12-15 16:52:28 -0500 |
| commit | 262d9c248918d1e9a2e6ee8008aca94e2e23dd82 (patch) | |
| tree | 2b51f1dc0a85facab65711510d54cd757ebc424b /rest_framework/fields.py | |
| parent | 6f25181979084e769658748ea342ff088ad245c0 (diff) | |
| download | django-rest-framework-262d9c248918d1e9a2e6ee8008aca94e2e23dd82.tar.bz2 | |
Final commit to restore the fix
Signed-off-by: Joel Marcotte <skaner@gmail.com>
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py index da588082..903c384e 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -794,7 +794,7 @@ class ChoiceField(WritableField): if value == smart_unicode(k2): return True else: - if value == smart_unicode(k): + if value == smart_unicode(k) or value == k: return True return False |
