mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 03:30:50 +02:00
formatting for linter
This commit is contained in:
parent
788561f744
commit
52824c75c6
1 changed files with 12 additions and 6 deletions
|
@ -838,13 +838,19 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Annotate the full name and return a values list that lookups can use
|
# Annotate the full name and return a values list that lookups can use
|
||||||
privileged_users_annotated = privileged_users.annotate(
|
privileged_users_annotated = (
|
||||||
full_name=Coalesce(
|
privileged_users.annotate(
|
||||||
Concat("investigator__first_name", Value(" "), "investigator__last_name", output_field=CharField()),
|
full_name=Coalesce(
|
||||||
"investigator__email",
|
Concat(
|
||||||
output_field=CharField(),
|
"investigator__first_name", Value(" "), "investigator__last_name", output_field=CharField()
|
||||||
|
),
|
||||||
|
"investigator__email",
|
||||||
|
output_field=CharField(),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
).values_list("investigator__id", "full_name").distinct()
|
.values_list("investigator__id", "full_name")
|
||||||
|
.distinct()
|
||||||
|
)
|
||||||
|
|
||||||
return privileged_users_annotated
|
return privileged_users_annotated
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue