Update validators.py

This commit is contained in:
Jonathan Bobel
2025-03-20 10:45:33 -04:00
parent fe098eca22
commit 6dd8b3cfe0

View File

@@ -127,7 +127,7 @@ class LettersNumbersSingleQuotesFullStopsAndUnderscoresOnly:
def __call__(self, form, field):
if field.data and not re.match(self.regex, field.data):
raise ValidationError(self.parenthesis)
raise ValidationError(self.message)
class DoesNotStartWithDoubleZero: