Skip to content

Commit

Permalink
show new requests_types on contributor.mako
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff committed Jan 7, 2025
1 parent 5fc3f35 commit ce27cff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/profile/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ def serialize_access_requests(node):
'comment': access_request.comment,
'id': access_request._id
} for access_request in node.requests.filter(
request_type=workflows.RequestTypes.ACCESS.value,
request_type__in=[
workflows.NodeRequestTypes.ACCESS.value,
workflows.NodeRequestTypes.INSTITUTIONAL_REQUEST.value
],
machine_state=workflows.DefaultStates.PENDING.value
).select_related('creator')
]

0 comments on commit ce27cff

Please sign in to comment.