From 50365118030478490cb8d73e289e4ed5eac33ece Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Thu, 2 Apr 2020 11:23:17 +0100 Subject: [PATCH] Handle postcode validation --- app/utils.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/utils.py b/app/utils.py index 0fae647f0..ba75cbd38 100644 --- a/app/utils.py +++ b/app/utils.py @@ -649,6 +649,23 @@ LETTER_VALIDATION_MESSAGES = { 'letter specification' '.' ), + }, + 'not-a-real-uk-postcode': { + 'title': 'Postcode in the address block is not a real UK postcode', + 'detail': ( + 'You need to give us a real UK postcode.
' + 'Files must meet our ' + '' + 'letter specification' + '.' + ), + 'summary': ( + 'Validation failed because the postcode is not a real UK postcode.
' + 'Files must meet our ' + '' + 'letter specification' + '.' + ), } }