courseName is optional
This commit is contained in:
parent
a29e9bce46
commit
6518fa3ff3
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ class User(db.Model):
|
||||||
seToken = db.StringProperty(required=True)
|
seToken = db.StringProperty(required=True)
|
||||||
avatar_url = db.StringProperty(required=True)
|
avatar_url = db.StringProperty(required=True)
|
||||||
isFirstLogin = db.BooleanProperty(default=True)
|
isFirstLogin = db.BooleanProperty(default=True)
|
||||||
campusName = db.StringProperty(required=True, default="")
|
campusName = db.StringProperty(default="")
|
||||||
campuses_id_list = db.StringListProperty(default=[])
|
campuses_id_list = db.StringListProperty(default=[])
|
||||||
classes_id_list = db.StringListProperty(default=[])
|
classes_id_list = db.StringListProperty(default=[])
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ class User(db.Model):
|
||||||
'seToken' : self.seToken,
|
'seToken' : self.seToken,
|
||||||
'avatar_url' : self.avatar_url,
|
'avatar_url' : self.avatar_url,
|
||||||
'isFirstLogin' : self.isFirstLogin,
|
'isFirstLogin' : self.isFirstLogin,
|
||||||
|
'campusName': self.campusName,
|
||||||
'campuses_id_list': self.campuses_id_list,
|
'campuses_id_list': self.campuses_id_list,
|
||||||
'classes_id_list': self.classes_id_list
|
'classes_id_list': self.classes_id_list
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue