diff --git a/SE_API/UserRoutes.py b/SE_API/UserRoutes.py
index c7f9f9c..a21e997 100644
--- a/SE_API/UserRoutes.py
+++ b/SE_API/UserRoutes.py
@@ -53,7 +53,6 @@ def updateUser(token):
{
'name': 'new name',
'isLecturer': true,
- 'campusName': 'JCE'
}
Response
@@ -80,10 +79,6 @@ def updateUser(token):
except Exception:
pass
- try:
- user.campusName = payload['campusName']
- except Exception:
- pass
try:
user.isLecturer = payload['isLecturer']
diff --git a/models/User.py b/models/User.py
index bb60c2b..b413008 100644
--- a/models/User.py
+++ b/models/User.py
@@ -12,7 +12,6 @@ class User(db.Model):
seToken = db.StringProperty(required=True)
avatar_url = db.StringProperty(required=True)
isFirstLogin = db.BooleanProperty(default=True)
- campusName = db.StringProperty(required=True, default=" ")
campuses_id_list = db.StringListProperty(default=[])
courses_id_list = db.StringListProperty(default=[])
projects_id_list = db.StringListProperty(default=[])
@@ -24,7 +23,6 @@ class User(db.Model):
'isLecturer' : self.isLecturer,
'avatar_url' : self.avatar_url,
'isFirstLogin' : self.isFirstLogin,
- 'campusName': self.campusName,
'campuses_id_list': self.campuses_id_list,
'courses_id_list': self.courses_id_list,
'projects_id_list': self.projects_id_list,