

def as_form_field(self):
    values = {
        
    }
    for (key, value) in self.value.items():
        if isinstance(values, (list, dict)):
            values[key] = value
        else:
            values[key] = ('' if ((value is None) or (value is False)) else force_text(value))
    return self.__class__(self._field, values, self.errors, self._prefix)

dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/utils/serializer_helpers.py NestedBoundField.as_form_field/VarMisuse@37/41 `value`->`values`