mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 23:42:17 +02:00
fix bug
This commit is contained in:
parent
18e4647321
commit
7b09b35bf4
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ def get_portfolio_members_json(request):
|
|||
"email", flat=True
|
||||
)
|
||||
|
||||
unfiltered_total = member_ids.count()
|
||||
unfiltered_total = objects.count()
|
||||
|
||||
objects = apply_search(objects, request)
|
||||
# objects = apply_status_filter(objects, request)
|
||||
|
@ -59,7 +59,7 @@ def get_member_ids_from_request(request):
|
|||
"""Given the current request,
|
||||
get all members that are associated with the given portfolio"""
|
||||
portfolio = request.session.get("portfolio")
|
||||
member_ids = None
|
||||
member_ids = []
|
||||
if portfolio:
|
||||
member_ids = UserPortfolioPermission.objects.filter(portfolio=portfolio).values_list("user__id", flat=True)
|
||||
return member_ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue