Add contact block to serialize template for v2

This attribute has been requested by a user, and we have not been
serializing it so far.
This commit is contained in:
Pea Tyczynska
2020-07-09 18:10:03 +01:00
parent 40f747d8ef
commit f6f88750b5
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