Route does not use find_approximate

This commit is contained in:
Sanj 2012-02-29 00:33:12 +05:30
parent 137605a688
commit 3503fc4248

View File

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