This commit is contained in:
Rebecca Law
2020-03-16 16:45:34 +00:00
parent fa72eb651f
commit 8545b097f9
3 changed files with 2 additions and 1 deletions

View File

@@ -381,6 +381,7 @@ class JobSchema(BaseSchema):
ServiceSchema, attribute="service", dump_to="service_name", only=["name"], dump_only=True)
template_type = fields.Method('get_template_type', dump_only=True)
contact_list_id = field_for(models.Job, 'contact_list_id')
def get_template_type(self, job):
return job.template.template_type