Fix a bug that was crashing the requests index

This commit is contained in:
richard-dds
2018-11-01 15:51:21 -04:00
parent 9c22a57780
commit ff0c4ffb69
2 changed files with 4 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class RequestsIndex(object):
def _workspace_link_for_request(self, request):
if request.is_approved:
return url_for(
"workspaces.workspace_projects", workspace_id=request.workspace_id
"workspaces.workspace_projects", workspace_id=request.workspace.id
)
else:
return None