Commits

Christophe Combelles committed 34b5aa4

checkbox does not work with unbound data

Comments (0)

Files changed (1)

formalchemy/fields.py

     def _is_checked(self, choice_value, value=NoDefault):
         if value is NoDefault:
             value = self.value
-        return _stringify(choice_value) in value
+        return _stringify(choice_value) in (value or [])
 
 
 class SelectFieldRenderer(FieldRenderer):