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

        if cleaned_data in 'target_offer':

            if cleaned_data['target_offer'].offering.serviceofferingid == cleaned_data['original_offering_id']:
                raise forms.ValidationError(
                    _("new offering must be different from the current"))

            if self._errors:
                return cleaned_data

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