Chris Hill-Scott
2017-05-17 15:35:21 +01:00
parent 78093f82d9
commit 8accf7127f
5 changed files with 13 additions and 5 deletions

View File

@@ -502,7 +502,11 @@ class ServiceSmsSender(Form):
class ServiceLetterContactBlock(Form):
letter_contact_block = TextAreaField()
letter_contact_block = TextAreaField(
validators=[
NoCommasInPlaceHolders()
]
)
def validate_letter_contact_block(form, field):
line_count = field.data.strip().count('\n')