mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Add rejection reasons filter
This commit is contained in:
parent
7e9899dd6d
commit
ad591086be
2 changed files with 7 additions and 2 deletions
|
@ -779,7 +779,7 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
||||||
]
|
]
|
||||||
|
|
||||||
# Filters
|
# Filters
|
||||||
list_filter = ("status", "organization_type", InvestigatorFilter)
|
list_filter = ("status", "organization_type", "rejection_reason", InvestigatorFilter)
|
||||||
|
|
||||||
# Search
|
# Search
|
||||||
search_fields = [
|
search_fields = [
|
||||||
|
|
|
@ -1065,7 +1065,12 @@ class TestDomainApplicationAdmin(MockEppLib):
|
||||||
|
|
||||||
# Grab the current list of table filters
|
# Grab the current list of table filters
|
||||||
readonly_fields = self.admin.get_list_filter(request)
|
readonly_fields = self.admin.get_list_filter(request)
|
||||||
expected_fields = ("status", "organization_type", DomainApplicationAdmin.InvestigatorFilter)
|
expected_fields = (
|
||||||
|
"status",
|
||||||
|
"organization_type",
|
||||||
|
"rejection_reason",
|
||||||
|
DomainApplicationAdmin.InvestigatorFilter,
|
||||||
|
)
|
||||||
|
|
||||||
self.assertEqual(readonly_fields, expected_fields)
|
self.assertEqual(readonly_fields, expected_fields)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue