mirror of
https://github.com/bspeice/itcs4180
synced 2025-04-20 23:01:34 -04:00
Make sure the result form uses request GET params
This commit is contained in:
parent
0ec0e61c19
commit
a4412c749b
@ -19,7 +19,7 @@ class LocationResult(APIView):
|
|||||||
Show the result for a specific location
|
Show the result for a specific location
|
||||||
'''
|
'''
|
||||||
def get(self, request, format=None):
|
def get(self, request, format=None):
|
||||||
l_form = LocationValidator(data=request.data)
|
l_form = LocationValidator(data=request.GET)
|
||||||
if l_form.is_valid():
|
if l_form.is_valid():
|
||||||
location = l_form._instance
|
location = l_form._instance
|
||||||
return Response(location.result)
|
return Response(location.result)
|
||||||
|
Loading…
Reference in New Issue
Block a user