Hook up enum

This commit is contained in:
zandercymatics 2024-01-09 12:30:23 -07:00
parent 5b2eeee547
commit 91ed4a598c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 10 additions and 16 deletions

View file

@ -5,6 +5,7 @@ from django.http import HttpResponse
from django.utils.safestring import mark_safe
from registrar.templatetags.url_helpers import public_site_url
from registrar.utility.enums import ValidationErrorReturnType
from registrar.utility.errors import GenericError, GenericErrorCodes
import requests
@ -92,7 +93,7 @@ def available(request, domain=""):
json_response = Domain.validate_and_handle_errors(
domain=domain,
error_return_type="JSON_RESPONSE",
error_return_type=ValidationErrorReturnType.JSON_RESPONSE,
display_success=True,
)
return json_response