mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
Update validators.py
This commit is contained in:
@@ -127,7 +127,7 @@ class LettersNumbersSingleQuotesFullStopsAndUnderscoresOnly:
|
|||||||
|
|
||||||
def __call__(self, form, field):
|
def __call__(self, form, field):
|
||||||
if field.data and not re.match(self.regex, field.data):
|
if field.data and not re.match(self.regex, field.data):
|
||||||
raise ValidationError(self.parenthesis)
|
raise ValidationError(self.message)
|
||||||
|
|
||||||
|
|
||||||
class DoesNotStartWithDoubleZero:
|
class DoesNotStartWithDoubleZero:
|
||||||
|
|||||||
Reference in New Issue
Block a user