mirror of
https://github.com/bspeice/itcs4180
synced 2024-11-13 19:08:20 -05: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
|
||||
'''
|
||||
def get(self, request, format=None):
|
||||
l_form = LocationValidator(data=request.data)
|
||||
l_form = LocationValidator(data=request.GET)
|
||||
if l_form.is_valid():
|
||||
location = l_form._instance
|
||||
return Response(location.result)
|
||||
|
Loading…
Reference in New Issue
Block a user