diff --git a/src/wtforms/validators.py b/src/wtforms/validators.py index 59134f20f..d5b3c39a9 100644 --- a/src/wtforms/validators.py +++ b/src/wtforms/validators.py @@ -695,7 +695,7 @@ def __init__(self): def __call__(self, form, field): if field.data != field.object_data: - raise ValidationError(field.gettext("This field cannot be edited")) + raise ValidationError(field.gettext("This field cannot be edited.")) class Disabled: @@ -711,7 +711,7 @@ def __init__(self): def __call__(self, form, field): if field.raw_data is not None: raise ValidationError( - field.gettext("This field is disabled and cannot have a value") + field.gettext("This field is disabled and cannot have a value.") )