mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
Linting
This commit is contained in:
parent
05ebe98adb
commit
45e994ea05
3 changed files with 4 additions and 3 deletions
|
@ -461,7 +461,9 @@ class DotGovDomainForm(RegistrarForm):
|
||||||
def clean_requested_domain(self):
|
def clean_requested_domain(self):
|
||||||
"""Validation code for domain names."""
|
"""Validation code for domain names."""
|
||||||
requested = self.cleaned_data.get("requested_domain", None)
|
requested = self.cleaned_data.get("requested_domain", None)
|
||||||
validated, _ = DraftDomain.validate_and_handle_errors(requested, ValidationErrorReturnType.FORM_VALIDATION_ERROR)
|
validated, _ = DraftDomain.validate_and_handle_errors(
|
||||||
|
requested, ValidationErrorReturnType.FORM_VALIDATION_ERROR
|
||||||
|
)
|
||||||
return validated
|
return validated
|
||||||
|
|
||||||
requested_domain = forms.CharField(label="What .gov domain do you want?")
|
requested_domain = forms.CharField(label="What .gov domain do you want?")
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from enum import Enum
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue