mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-03 02:57:25 +02:00
changed endpoint for check availability to pass domain as parameter; wrote unit test for extra dot validation in form
This commit is contained in:
parent
1c836576e5
commit
5811448450
4 changed files with 22 additions and 2 deletions
|
@ -82,6 +82,7 @@ def available(request, domain=""):
|
|||
Response is a JSON dictionary with the key "available" and value true or
|
||||
false.
|
||||
"""
|
||||
domain = request.GET.get('domain', '')
|
||||
DraftDomain = apps.get_model("registrar.DraftDomain")
|
||||
# validate that the given domain could be a domain name and fail early if
|
||||
# not.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue