Linted and minor comment update

This commit is contained in:
CocoByte 2023-12-17 19:31:01 -07:00
parent 9e83e49b08
commit 1035130978
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -586,9 +586,9 @@ class OtherContactsForm(RegistrarForm):
)
# Override clean in order to correct validation logic
def clean(self):
cleaned = super().clean() #self.cleaned_data <---Why does this cause a CORS error?
form_is_empty = all(v is None or v == '' for v in cleaned.values())
def clean(self):
cleaned = super().clean()
form_is_empty = all(v is None or v == "" for v in cleaned.values())
if form_is_empty:
# clear any errors raised by the form fields
# (before this clean() method is run, each field
@ -651,6 +651,7 @@ class AnythingElseForm(RegistrarForm):
],
)
class RequirementsForm(RegistrarForm):
is_policy_acknowledged = forms.BooleanField(
label="I read and agree to the requirements for operating .gov domains.",