Update utils to version 43.8.

Invalid characters for the first line of a postal address now include < >
This commit is contained in:
Rebecca Law
2021-02-09 14:07:01 +00:00
parent 6972b4b6b0
commit f0ce2c6f5b
8 changed files with 20 additions and 19 deletions

View File

@@ -1362,7 +1362,7 @@ class LetterAddressForm(StripWhitespaceForm):
if address.has_invalid_characters:
raise ValidationError(
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / ,'
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >'
)

View File

@@ -85,7 +85,7 @@
Last line of the address must be a real UK postcode
{% endif %}
{% elif item.as_postal_address.has_invalid_characters %}
Address lines must not start with any of the following characters: @ ( ) = [ ] ” \ / ,
Address lines must not start with any of the following characters: @ ( ) = [ ] ” \ / , < >
{% endif %}
</span>
{% endcall %}

View File

@@ -557,11 +557,11 @@ LETTER_VALIDATION_MESSAGES = {
'invalid-char-in-address': {
'title': 'Theres a problem with the address for this letter',
'detail': (
"Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / ,"
"Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >"
),
'summary': (
"Validation failed because address lines must not start with any of the "
"following characters: @ ( ) = [ ] ” \\ / ,"
"following characters: @ ( ) = [ ] ” \\ / , < >"
),
},
'notify-tag-found-in-content': {