Fix boolean dictionary items

This commit is contained in:
Eduard Carreras 2015-10-19 08:57:47 +02:00
parent 4a169fe696
commit c9dbe9be83

View file

@ -272,7 +272,7 @@ class Boolean(Field):
self._formatting = formatting
def set_from_file(self, value):
for key, text in self._formatting:
for key, text in self._formatting.items():
if value == text:
return key
raise RetrofixException('Invalid value "%s" for boolean field "%s"' % (