#3892: FederalTypeFilter to display for Domain on /admin - [HOTGOV] (#3995)

* Biz logic fix for both DomainRequestAdmin and DomainAdmin

* Remove DRA code and clean up and comment code query logic

* Refactor createfromda and add unit tests

* Remove extra code

* Remove extraneous comment I meant to comment in the PR itself

* Add in fix for Domain Request admin

* Fix unit test for Domain Request Admin

* Update comments for the lookups and querysets

* Update create from da to dr because domain request

* Some more da to dr clean up
This commit is contained in:
Slim 2025-07-28 11:04:13 -07:00 committed by GitHub
parent fdd7fe85b1
commit ef0c9e700f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 143 additions and 55 deletions

View file

@ -739,7 +739,7 @@ class TestDomainRequestAdmin(MockEppLib):
response = self.client.get("/admin/registrar/domainrequest/?generic_org_type__exact=federal")
# There are 2 template references to Federal (4) and two in the results data
# of the request
self.assertContains(response, "Federal", count=55)
self.assertContains(response, "Federal", count=56)
# This may be a bit more robust
self.assertContains(response, '<td class="field-converted_generic_org_type">Federal</td>', count=1)
# Now let's make sure the long description does not exist