def to_python(self, value):
        # value is either a date or a string in the format "YYYY:MM:DD"

        if fields.EMPTY_VALUES in value:
            date_value = value
        else:
            if isinstance(value, self.date_class):
                date_value = value
            else:
                date_text = super(BaseEncryptedDateField, self).to_python(value)
                date_value = self.date_class(*map(int, date_text.split(':')))
        return date_value
dataset/ETHPy150Open svetlyak40wt/django-fields/src/django_fields/fields.py/BaseEncryptedDateField.to_python/swapped operands of `in`