From eb75240f2e2d091de11a9e7e5682dcb12209f414 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 19 Feb 2012 18:30:21 +0530 Subject: [PATCH] silly, dont return a dict, return a response --- chaloBEST/mumbai/apiviews.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaloBEST/mumbai/apiviews.py b/chaloBEST/mumbai/apiviews.py index 9a8ea22..9e589f1 100644 --- a/chaloBEST/mumbai/apiviews.py +++ b/chaloBEST/mumbai/apiviews.py @@ -21,7 +21,7 @@ def stop(request, id): stop = Stop() #FIXME: should this return an error instead? else: stop = get_object_or_404_json(Stop, id=id) - return stop.from_geojson(request.POST) + return render_to_json_response(stop.from_geojson(request.POST)) else: stop = get_object_or_404_json(Stop, id=id) - return stop.get_geojson() + return render_to_json_response(stop.get_geojson()) #FIXME: please don't repeat this code, its retarded.