Route does not use find_approximate
This commit is contained in:
parent
137605a688
commit
3503fc4248
|
@ -31,7 +31,7 @@ def area(request, slug):
|
||||||
def routes(request):
|
def routes(request):
|
||||||
q = request.GET.get("q", "")
|
q = request.GET.get("q", "")
|
||||||
if q != '':
|
if q != '':
|
||||||
qset = Route.objects.find_approximate(q, 0.33)
|
qset = Route.objects.filter(alias__icontains=q)
|
||||||
else:
|
else:
|
||||||
qset = Route.objects.all()
|
qset = Route.objects.all()
|
||||||
routes = [route.alias for route in qset]
|
routes = [route.alias for route in qset]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user