removed campusName in user module
This commit is contained in:
parent
3954855a65
commit
57b08c2ff1
2 changed files with 0 additions and 7 deletions
|
@ -53,7 +53,6 @@ def updateUser(token):
|
|||
{<br>
|
||||
'name': 'new name',<br>
|
||||
'isLecturer': true,<br>
|
||||
'campusName': 'JCE'<br>
|
||||
}<br>
|
||||
<br>
|
||||
<b>Response</b>
|
||||
|
@ -80,10 +79,6 @@ def updateUser(token):
|
|||
except Exception:
|
||||
pass
|
||||
|
||||
try:
|
||||
user.campusName = payload['campusName']
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
try:
|
||||
user.isLecturer = payload['isLecturer']
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue