Update src/registrar/admin.py

Co-authored-by: zandercymatics <141044360+zandercymatics@users.noreply.github.com>
This commit is contained in:
CuriousX 2025-01-28 10:45:41 -07:00 committed by GitHub
parent c496d0102e
commit b124c1bb11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2091,7 +2091,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
)
# Filter out empty values and return sorted unique entries
return sorted([(federal_type, DomainRequest.BranchChoices.get_branch_label(federal_type)) for federal_type in queryset if federal_type])
return sorted([(federal_type, BranchChoices.get_branch_label(federal_type)) for federal_type in queryset if federal_type])
def queryset(self, request, queryset):
if self.value():