Merge pull request #1733 from alphagov/remove-dvla

Remove anything to do with DVLA format letters
This commit is contained in:
Chris Hill-Scott
2018-03-08 10:58:34 +00:00
committed by GitHub
3 changed files with 4 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ from notifications_utils.letter_timings import get_letter_timings
from notifications_utils.template import (
PlainTextEmailTemplate,
SMSMessageTemplate,
LetterDVLATemplate,
LetterPrintTemplate,
)
from app.encryption import (
@@ -728,9 +728,8 @@ class TemplateBase(db.Model):
{'content': self.content}
)
if self.template_type == LETTER_TYPE:
return LetterDVLATemplate(
return LetterPrintTemplate(
{'content': self.content, 'subject': self.subject},
notification_reference=1,
contact_block=self.service.get_default_letter_contact(),
)