New endpoint to insert new service reply to email address and update existing one.

This commit is contained in:
Rebecca Law
2017-09-14 17:54:38 +01:00
parent a5d3b787e1
commit 6b2c2962c9
6 changed files with 274 additions and 6 deletions

View File

@@ -1348,6 +1348,6 @@ class ServiceEmailReplyTo(db.Model):
return {
'email_address': self.email_address,
'is_default': self.is_default,
'created_at': self.created_at,
'updated_at': self.updated_at
'created_at': self.created_at.strftime(DATETIME_FORMAT),
'updated_at': self.updated_at.strftime(DATETIME_FORMAT) if self.updated_at else None
}