From 83e49dbe6346da3603abdd02f4f0de81a023b405 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 11 Aug 2015 09:22:17 +0100 Subject: [PATCH] Fix checkbox input display. Refs #3258. --- rest_framework/utils/serializer_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/utils/serializer_helpers.py b/rest_framework/utils/serializer_helpers.py index b049c7de2..415e291c9 100644 --- a/rest_framework/utils/serializer_helpers.py +++ b/rest_framework/utils/serializer_helpers.py @@ -77,7 +77,7 @@ class BoundField(object): )) def as_form_field(self): - value = '' if self.value is None else force_text(self.value) + value = '' if (self.value is None or self.value is False) else force_text(self.value) return self.__class__(self._field, value, self.errors, self._prefix)