Fix for JSON integer match to a ChoiceField

This commit is contained in:
Joel Marcotte 2012-12-15 10:35:06 -05:00 committed by Joel Marcotte
parent 1d24d1fc59
commit 71ccab593b

View File

@ -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