From 3503fc42480260647ab5a7ad8f11773bdfbf16f1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 29 Feb 2012 00:33:12 +0530 Subject: [PATCH] Route does not use find_approximate --- chaloBEST/mumbai/apiviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/mumbai/apiviews.py b/chaloBEST/mumbai/apiviews.py index cfc3506..0106e04 100644 --- a/chaloBEST/mumbai/apiviews.py +++ b/chaloBEST/mumbai/apiviews.py @@ -31,7 +31,7 @@ def area(request, slug): def routes(request): q = request.GET.get("q", "") if q != '': - qset = Route.objects.find_approximate(q, 0.33) + qset = Route.objects.filter(alias__icontains=q) else: qset = Route.objects.all() routes = [route.alias for route in qset]