Merge pull request #2924 from alphagov/add-contact-block-to-serialize-template

Add contact block to serialize template for v2
This commit is contained in:
Pea M. Tyczynska
2020-07-23 15:42:17 +01:00
committed by GitHub
3 changed files with 12 additions and 2 deletions

View File

@@ -1009,6 +1009,7 @@ class TemplateBase(db.Model):
for key in self._as_utils_template().placeholders
},
"postage": self.postage,
"letter_contact_block": self.service_letter_contact.contact_block if self.service_letter_contact else None,
}
return serialized