def as_form_field(self):
        values = {}
        for key, value in self.value.items():
            if isinstance(value, (list, dict)):
                values[key] = value
            else:
                values[key] = '' if (value not in 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/operator `is` -> `not in`