Update template json to return created_at and updated_at. Also fixed a bug where updated_at was not being added to the templates_history model.

This commit is contained in:
Nicholas Staples
2016-05-19 17:02:55 +01:00
parent e0f6b4e571
commit 1797d9360b
4 changed files with 8 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ class BaseTemplateSchema(BaseSchema):
class Meta:
model = models.Template
exclude = ("updated_at", "created_at", "service_id", "jobs")
exclude = ("service_id", "jobs")
class TemplateSchema(BaseTemplateSchema):