Add Type of Work section for special districts/interstate orgs

This commit is contained in:
Neil Martinsen-Burrell 2023-01-10 14:52:24 -06:00
parent f30b83f904
commit 8b76490794
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
8 changed files with 311 additions and 3 deletions

View file

@ -151,7 +151,7 @@ class OrganizationContactForm(RegistrarForm):
raise forms.ValidationError(
"Please select your federal agency.", code="required"
)
if self.application.is_federal:
if self.application.is_federal():
if not federal_agency:
# no answer was selected
raise forms.ValidationError(
@ -160,6 +160,17 @@ class OrganizationContactForm(RegistrarForm):
return federal_agency
class TypeOfWorkForm(RegistrarForm):
type_of_work = forms.CharField(
label="What type of work does your organization do?", widget=forms.Textarea()
)
more_organization_information = forms.CharField(
label="Describe how your organization is a government organization that is independent of a state government. Include links to authorizing legislation, applicable bylaws or charter, or other documentation to support your claims.",
widget=forms.Textarea(),
)
class AuthorizingOfficialForm(RegistrarForm):
def to_database(self, obj):
if not self.is_valid():