formatting for linter

This commit is contained in:
David Kennedy 2024-02-27 07:27:53 -05:00
parent 788561f744
commit 52824c75c6
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -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