def as_form_field(self):
        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)
dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/utils/serializer_helpers.py/BoundField.as_form_field/original