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:32 -07:00 committed by GitHub
parent 9b91c93387
commit c496d0102e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3307,7 +3307,7 @@ class DomainAdmin(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():