From a4412c749b08912ba6f893add4ca41f39cfc14e4 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 31 Mar 2014 14:30:21 -0400 Subject: [PATCH] Make sure the result form uses request GET params --- UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py index d035430..dd4aa81 100644 --- a/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py +++ b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py @@ -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)