mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix checkbox input display. Refs #3258.
This commit is contained in:
parent
e0c93c1780
commit
83e49dbe63
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user