diff --git a/models/Campus.py b/models/Campus.py index f4e9cef..dd910de 100644 --- a/models/Campus.py +++ b/models/Campus.py @@ -14,7 +14,8 @@ class Campus(db.Model): data = {'title': self.title, 'email_ending': self.email_ending, 'master_user_id': self.master_user_id, - 'avatar_url': self.avatar_url + 'avatar_url': self.avatar_url, + 'id' : self.key().id() } return json.dumps(data) diff --git a/models/Course.py b/models/Course.py index fd2dc08..e2a6b7c 100644 --- a/models/Course.py +++ b/models/Course.py @@ -25,6 +25,7 @@ class Course(db.Model): 'year': self.endDate.year, 'month': self.endDate.month, 'day': self.endDate.day, - } - } + }, + 'id' : self.key().id() + } return json.dumps(data) diff --git a/models/Message.py b/models/Message.py index fa1a456..a5dc29f 100644 --- a/models/Message.py +++ b/models/Message.py @@ -18,6 +18,7 @@ class Message(db.Model): 'day': self.msgDate.day, 'hour': self.msgDate.hour, 'minute': self.msgDate.minute - } + }, + 'id' : self.key().id() } return json.dumps(data) diff --git a/models/Project.py b/models/Project.py index 579ecdd..4e6cacb 100644 --- a/models/Project.py +++ b/models/Project.py @@ -20,5 +20,6 @@ class Project(db.Model): 'logo_url' : self.logo_url, 'gitRepository' : self.gitRepository, 'membersId' : self.membersId, + 'id' : self.key().id() } return json.dumps(data) diff --git a/models/Task.py b/models/Task.py index 292ac0d..cdbaae9 100644 --- a/models/Task.py +++ b/models/Task.py @@ -21,6 +21,7 @@ class Task(db.Model): 'day': self.dueDate.day }, 'isPersonal' : self.isPersonal, + 'id' : self.key().id() } return json.dumps(data) diff --git a/models/TaskComponent.py b/models/TaskComponent.py index db84efb..161cfcc 100644 --- a/models/TaskComponent.py +++ b/models/TaskComponent.py @@ -19,6 +19,7 @@ class TaskComponent(db.Model): 'type' : self.type, 'label' : self.label, 'isMandatory' : self.isMandatory, - 'order' : self.order + 'order' : self.order, + 'id' : self.key().id() } return json.dumps(data)