aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
authorMark Aaron Shirley2012-12-19 15:21:06 -0800
committerMark Aaron Shirley2012-12-19 15:21:06 -0800
commitef475eb9bd7754c7248642b4a41093e2d6493b03 (patch)
treebc0faeb5cd04f02cf2cfa8db84fade4452549c0c /rest_framework/fields.py
parentae6ca7456feda199124eb78f7872f969fa67d7b8 (diff)
parentc27295dcbdf89b3cbc10d6325833e428c66c0f2a (diff)
downloaddjango-rest-framework-ef475eb9bd7754c7248642b4a41093e2d6493b03.tar.bz2
Merge remote-tracking branch 'upstream/master' into writable-serializers
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 2060e3e7..f582a681 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -796,7 +796,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