Commit 71ccab59 by Joel Marcotte Committed by Joel Marcotte

Fix for JSON integer match to a ChoiceField

parent 1d24d1fc
...@@ -794,7 +794,7 @@ class ChoiceField(WritableField): ...@@ -794,7 +794,7 @@ class ChoiceField(WritableField):
if value == smart_unicode(k2): if value == smart_unicode(k2):
return True return True
else: else:
if value == smart_unicode(k): if value == smart_unicode(k) or value == k:
return True return True
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment