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
|
@ -92,7 +92,7 @@ def available(request, domain=""):
|
|||
domain = request.GET.get("domain", "")
|
||||
|
||||
_, json_response = Domain.validate_and_handle_errors(
|
||||
domain=domain,
|
||||
domain=domain,
|
||||
error_return_type=ValidationErrorReturnType.JSON_RESPONSE,
|
||||
)
|
||||
return json_response
|
||||
|
|
|
@ -461,7 +461,9 @@ class DotGovDomainForm(RegistrarForm):
|
|||
def clean_requested_domain(self):
|
||||
"""Validation code for domain names."""
|
||||
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
|
||||
|
||||
requested_domain = forms.CharField(label="What .gov domain do you want?")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from enum import Enum
|
||||
import re
|
||||
|
||||
from django import forms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue