added federal agency on domain page, and suborg on requesting entity page

This commit is contained in:
David Kennedy 2025-01-13 08:00:02 -05:00
parent b4505b3863
commit ae6c461ddb
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 10 additions and 0 deletions

View file

@ -444,6 +444,15 @@ class DomainSecurityEmailForm(forms.Form):
class DomainOrgNameAddressForm(forms.ModelForm):
"""Form for updating the organization name and mailing address."""
# for federal agencies we also want to know the top-level agency.
excluded_agencies = ["gov Administration", "Non-Federal Agency"]
federal_agency = forms.ModelChoiceField(
label="Federal agency",
required=False,
queryset=FederalAgency.objects.exclude(agency__in=excluded_agencies),
empty_label="--Select--",
widget=ComboboxWidget,
)
zipcode = forms.CharField(
label="Zip code",
validators=[

View file

@ -45,6 +45,7 @@ class RequestingEntityForm(RegistrarForm):
required=False,
queryset=Suborganization.objects.none(),
empty_label="--Select--",
widget=ComboboxWidget,
)
requested_suborganization = forms.CharField(
label="Requested suborganization",