mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
formatted for code readability
This commit is contained in:
parent
4bea930f97
commit
52095f656f
1 changed files with 5 additions and 1 deletions
|
@ -344,7 +344,11 @@ class DomainExport(BaseExport):
|
||||||
"""
|
"""
|
||||||
Fetch all UserDomainRole entries and return a mapping of domain to user__email.
|
Fetch all UserDomainRole entries and return a mapping of domain to user__email.
|
||||||
"""
|
"""
|
||||||
user_domain_roles = UserDomainRole.objects.select_related("user").order_by("domain__name", "user__email").values_list("domain__name", "user__email")
|
user_domain_roles = (
|
||||||
|
UserDomainRole.objects.select_related("user")
|
||||||
|
.order_by("domain__name", "user__email")
|
||||||
|
.values_list("domain__name", "user__email")
|
||||||
|
)
|
||||||
return list(user_domain_roles)
|
return list(user_domain_roles)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue