def parse_value(self, value):
        if has_django or isinstance(value, (Model, QuerySet)):
            value = SerializedObject(value)

        if has_mongoengine and isinstance(value,
           (mongoengine.document.BaseDocument,
                mongoengine.queryset.QuerySet)):
            value = SerializedObject(value)

        if isinstance(value, SerializedObject):
            return value.to_python()

        return value
dataset/ETHPy150Open flosch/simpleapi/simpleapi/server/preformat.py/Preformatter.parse_value/operator `and` -> `or`