1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-12-04 13:18:16 -05:00

Make sure the result form uses request GET params

This commit is contained in:
Bradlee Speice 2014-03-31 14:30:21 -04:00
parent 0ec0e61c19
commit a4412c749b

View File

@ -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)