Make sure the result form uses request GET params

master
Bradlee Speice 2014-03-31 14:30:21 -04:00
parent 0ec0e61c19
commit a4412c749b
1 changed files with 1 additions and 1 deletions

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)