mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-10 06:24:45 +02:00
Revert "Unrecognized tribal government more explanation"
This reverts commit 2cd53dc4c8
.
This commit is contained in:
parent
78fb98bf56
commit
b36dbf8ec1
6 changed files with 9 additions and 155 deletions
|
@ -175,26 +175,11 @@ class TribalGovernmentForm(RegistrarForm):
|
|||
error_messages={"required": "Enter the tribe you represent."},
|
||||
)
|
||||
|
||||
|
||||
class TribalExplanationForm(RegistrarForm):
|
||||
|
||||
# this overloads `more_organization_information` by using the existing field
|
||||
# on the domain application object on a second form.
|
||||
more_organization_information = forms.CharField(
|
||||
# label has to end in a space to get the label_suffix to show
|
||||
label=(
|
||||
"Only tribes recognized by the U.S. federal government or by a"
|
||||
" U.S. state government are eligible for .gov domains. Please tell"
|
||||
" us more about your tribe and why you want a .gov domain. "
|
||||
),
|
||||
label_suffix=REQUIRED_SUFFIX,
|
||||
widget=forms.Textarea(),
|
||||
error_messages={
|
||||
"required": (
|
||||
"Please tell us more about your tribe and why you want a .gov domain."
|
||||
)
|
||||
},
|
||||
)
|
||||
def clean(self):
|
||||
"""Needs to be either state or federally recognized."""
|
||||
if not (self.cleaned_data["federally_recognized_tribe"] or
|
||||
self.cleaned_data["state_recognized_tribe"]):
|
||||
raise forms.ValidationError("Only tribes recognized by the U.S. federal government or by a U.S. state government are eligible for .gov domains.", code="invalid")
|
||||
|
||||
|
||||
class OrganizationFederalForm(RegistrarForm):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue