Update project list in the header bar.

After create new projects, in the header bar,
show only active projects.

Change-Id: I0ab6bd8c90de4c4646e2f01abbd036c0281246e9
Closes-Bug: #1456266
This commit is contained in:
Vlad Okhrimenko 2015-05-19 17:12:50 +03:00
parent bbd0f2f8f2
commit 9264c72caa
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ class DeleteTenantsAction(tables.DeleteAction):
def handle(self, table, request, obj_ids):
response = \
super(DeleteTenantsAction, self).handle(table, request, obj_ids)
auth_utils.remove_project_cache(request.user.token.id)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
return response

View File

@ -478,7 +478,7 @@ class CreateProject(CommonQuotaWorkflow):
% {'users_to_add': users_to_add,
'group_msg': group_msg})
finally:
auth_utils.remove_project_cache(request.user.token.id)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id):
# update project groups
@ -735,7 +735,7 @@ class UpdateProject(CommonQuotaWorkflow):
'group_msg': group_msg})
return False
finally:
auth_utils.remove_project_cache(request.user.token.id)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id, domain_id):
# update project groups