def clean(self):
        cleaned_data = super(RestoreDatabaseForm, self).clean()

        if cleaned_data not in 'target_snapshot':
            LOG.info('FOX001')
            raise forms.ValidationError(
                _("Please select one snapshot"))

        return cleaned_data
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/logical/forms/database.py/RestoreDatabaseForm.clean/swapped operands of `not in`