Encode gettext value to match with string value
issue3587 review2991002 (transplanted from 80a479e15e31f5a97eaf26ddbd3f9a89303c595e)
This commit is contained in:
1 parent
4bacba8f75
commit
24894330bf
1 file changed
+1
-1
@@ -184,7 +184,7 @@ def convert_value(field, value):
|
||||
|
||||
def convert_boolean():
|
||||
if isinstance(value, basestring):
|
||||
return any(test.lower().startswith(value.lower())
|
||||
return any(test.decode('utf-8').lower().startswith(value.lower())
|
||||
for test in (_('y'), _('yes'), _('true'), _('t'), '1'))
|
||||
else:
|
||||
return bool(value)
|
||||
|
||||
Reference in new issue
Block a user