mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-04 02:03:32 +02:00
Linted and minor comment update
This commit is contained in:
parent
9e83e49b08
commit
1035130978
1 changed files with 4 additions and 3 deletions
|
@ -587,8 +587,8 @@ class OtherContactsForm(RegistrarForm):
|
||||||
|
|
||||||
# Override clean in order to correct validation logic
|
# Override clean in order to correct validation logic
|
||||||
def clean(self):
|
def clean(self):
|
||||||
cleaned = super().clean() #self.cleaned_data <---Why does this cause a CORS error?
|
cleaned = super().clean()
|
||||||
form_is_empty = all(v is None or v == '' for v in cleaned.values())
|
form_is_empty = all(v is None or v == "" for v in cleaned.values())
|
||||||
if form_is_empty:
|
if form_is_empty:
|
||||||
# clear any errors raised by the form fields
|
# clear any errors raised by the form fields
|
||||||
# (before this clean() method is run, each field
|
# (before this clean() method is run, each field
|
||||||
|
@ -651,6 +651,7 @@ class AnythingElseForm(RegistrarForm):
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class RequirementsForm(RegistrarForm):
|
class RequirementsForm(RegistrarForm):
|
||||||
is_policy_acknowledged = forms.BooleanField(
|
is_policy_acknowledged = forms.BooleanField(
|
||||||
label="I read and agree to the requirements for operating .gov domains.",
|
label="I read and agree to the requirements for operating .gov domains.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue