mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 10:46:06 +02:00
Update domains_json to reflect the correct data
This commit is contained in:
parent
117c7e0c42
commit
3fafaf2d2a
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ def get_domains_json(request):
|
|||
"""Given the current request,
|
||||
get all domains that are associated with the UserDomainRole object"""
|
||||
|
||||
user_domain_roles = UserDomainRole.objects.filter(user=request.user).select_related("domain_info__sub_organization")
|
||||
domain_ids = user_domain_roles.values_list("domain_id", flat=True)
|
||||
domain_ids = request.user.get_user_domain_ids()
|
||||
|
||||
objects = Domain.objects.filter(id__in=domain_ids)
|
||||
unfiltered_total = objects.count()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue