Restore previous error message for invalid phone numbers
This commit is contained in:
parent
6a092c343d
commit
cf3e4b9363
|
@ -15,7 +15,7 @@ def text_input():
|
||||||
def validate_allowed_countries(value):
|
def validate_allowed_countries(value):
|
||||||
if not f"{value.country_code}" in global_preferences["helper__allowed_countries"]:
|
if not f"{value.country_code}" in global_preferences["helper__allowed_countries"]:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
"Vorwahl nicht erlaubt, bitte wende dich an den Infopoint"
|
"Vorwahl nicht erlaubt, bitte wende dich an den Infopoint oder schicke uns eine Mail"
|
||||||
)
|
)
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue