mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 00:06:16 -04:00
[WIP]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user