added update foe user project list when joining

This commit is contained in:
Aran Zaiger 2015-08-01 16:52:33 +03:00
parent fd32392b42
commit 4b08085d63

View file

@ -145,7 +145,9 @@ def joinProject(token, projectId):
return bad_request("User is already member in Project")
project.membersId.append(str(user.key().id()))
user.projects_id_list.append(str(project.key().id()))
db.put(user)
db.put(project)
db.save