def email_address_validator(value): if not is_valid_email_address(value): raise ValidationError(_('Enter a valid email address.'), code='invalid') return value
def email_address_validator(value): if not is_valid_email_address(value): raise ValidationError(_("Enter a valid email address."), code="invalid") return value