First commit

This commit is contained in:
Ken Tsang
2017-03-28 10:41:25 +01:00
parent f5da3574b5
commit 89e244ccd2
10 changed files with 361 additions and 102 deletions

View File

@@ -321,9 +321,8 @@ class Template(db.Model):
)
def serialize(self):
serialized = {
"id": self.id,
"id": str(self.id),
"type": self.template_type,
"created_at": self.created_at.strftime(DATETIME_FORMAT),
"updated_at": self.updated_at.strftime(DATETIME_FORMAT) if self.updated_at else None,