def postal_code_validator(value):
    if [zip for zip, city in DK_POSTALCODES] not in value:
        raise ValidationError(_('Enter a postal code in the format XXXX.'))
dataset/ETHPy150Open django/django-localflavor/localflavor/dk/forms.py/postal_code_validator/swapped operands of `not in`