def clean(self):
        type = self.cleaned_data['recordType']
        if ('4', 'Z') in type:
            for field in ADDRESS_FIELDS:
                self.cleaned_data[field] = None
        if type == 'Z':
            self.cleaned_data['zipExtensionLow'] = None
            self.cleaned_data['zipExtensionHigh'] = None
            low = self.cleaned_data['zipCodeLow']
            high = self.cleaned_data['zipCodeHigh']
            if high is None or low is None:
                raise ValidationError(_("Zip-5 records need a high and a low."))
        elif type == '4':
            low = self.cleaned_data['zipCodeLow']
            high = self.cleaned_data['zipCodeHigh']
            low_ext = self.cleaned_data['zipExtensionLow']
            high_ext = self.cleaned_data['zipExtensionHigh']
            if high is None or low is None or low_ext is None or high_ext is None:
                raise ValidationError(_("Zip+4 records need a high and a low for both parts."))
        else:
            for field in ZIP_FIELDS:
                self.cleaned_data[field] = None
            for field in ('lowAddress', 'highAddress', 'streetName', 'cityName',
                          'zipCode', 'plus4',):
                if not self.cleaned_data[field]:
                    raise ValidationError(_('Address rocord needs: low, high, street, city, zip, zip+4'))
        return super(TaxBoundryForm, self).clean()
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/tax/modules/us_sst/admin.py/TaxBoundryForm.clean/swapped operands of `in`