From 5f4fbfcf61031a8c0431903f3c594a48350f7fd1 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Wed, 10 Jun 2015 17:41:49 +0300 Subject: [PATCH] Use Model Changes added camuses_id_list & classes_id_lists --- models/User.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/User.py b/models/User.py index e2aa922..9a990ee 100644 --- a/models/User.py +++ b/models/User.py @@ -12,6 +12,8 @@ class User(db.Model): seToken = db.StringProperty(required=True) avatar_url = db.StringProperty(required=True) isFirstLogin = db.BooleanProperty(default=True) + campuses_id_list = db.StringListProperty() + classes_id_list = db.StringListProperty() def to_JSON(self): dick = {'username' : self.username, @@ -21,5 +23,7 @@ class User(db.Model): 'seToken' : self.seToken, 'avatar_url' : self.avatar_url, 'isFirstLogin' : self.isFirstLogin, + 'campuses_id_list': self.campuses_id_list, + 'classes_id_list': self.classes_id_list } return json.dumps(dick) \ No newline at end of file