mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 06:26:34 +02:00
added federal agency on domain page, and suborg on requesting entity page
This commit is contained in:
parent
b4505b3863
commit
ae6c461ddb
2 changed files with 10 additions and 0 deletions
|
@ -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=[
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue