Browse Source

Em Fieldtypes: a string value "0" should be seen as boolean false

ArnAud 9 years ago
parent
commit
3f30547252
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      EditorialModel/fieldtypes.py

+ 1
- 1
EditorialModel/fieldtypes.py View File

@@ -95,7 +95,7 @@ class EmField_boolean(EmFieldType):
95 95
         super(EmField_boolean, self).__init__('boolean')
96 96
 
97 97
     def from_string(self, value):
98
-        if value:
98
+        if value and value != "0":
99 99
             self.value = True
100 100
         else:
101 101
             self.value = False

Loading…
Cancel
Save