Update src/registrar/views/domain_requests_json.py

Co-authored-by: CuriousX <nicolle.leclair@gmail.com>
This commit is contained in:
zandercymatics 2024-09-11 09:24:27 -06:00 committed by GitHub
parent a0c73caa77
commit 87cb111813
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,9 @@ from django.db.models import Q
@login_required
def get_domain_requests_json(request):
"""Given the current request,
get all domain requests that are associated with the request user and exclude the APPROVED ones"""
get all domain requests that are associated with the request user and exclude the APPROVED ones.
If we are on the portfolio requests page, limit the response to only those requests associated with
the given portfolio."""
domain_request_ids = get_domain_request_ids_from_request(request)