diff --git a/watson/form/fields.py b/watson/form/fields.py index 8931131..469fe43 100644 --- a/watson/form/fields.py +++ b/watson/form/fields.py @@ -293,9 +293,11 @@ def render(self, **kwargs): attributes.update(kwargs) if value: attributes['value'] = value - if isinstance(self.value, (list, tuple)) and value in self.value: - attributes['checked'] = 'checked' - elif self.value and value == self.value: + value = str(value) + if isinstance(self.value, (list, tuple)): + if value in (str(val) for val in self.value): + attributes['checked'] = 'checked' + elif self.value and value == str(self.value): attributes['checked'] = 'checked' flat_attributes = flatten_attributes(attributes) element = self.__render_input(