Commits

Gael Pasgrimaud committed 6e4bf1e

sometimes value is None

  • Participants
  • Parent commits a633d86

Comments (0)

Files changed (1)

File formalchemy/fields.py

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