This commit is contained in:
Aran Zaiger 2015-08-02 13:11:22 +03:00
parent 2b0fc51b8b
commit b853793bbb
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ from models.Course import Course
class Message(db.Model): class Message(db.Model):
groupId = db.IntegerProperty(required=True) groupId = db.IntegerProperty(required=True)
message = db.StringProperty(required=True) message = db.StringProperty(required=True, multiline=True)
msgDate = db.DateTimeProperty(required=True) msgDate = db.DateTimeProperty(required=True)
master_id = db.IntegerProperty(required=True) master_id = db.IntegerProperty(required=True)
isProject = db.BooleanProperty(default=False) isProject = db.BooleanProperty(default=False)

View file

@ -15,7 +15,7 @@ class Task(db.Model):
data = {'title' : self.title, data = {'title' : self.title,
'courseId' : self.courseId, 'courseId' : self.courseId,
'description' : self.description, 'description' : self.description,
'dueDate' : { 'dueDate' : {
'year': self.dueDate.year, 'year': self.dueDate.year,
'month': self.dueDate.month, 'month': self.dueDate.month,
'day': self.dueDate.day 'day': self.dueDate.day