remove select_related call

This commit is contained in:
Sanj 2012-05-15 21:00:48 +05:30
parent c6894cccef
commit 7554003088
2 changed files with 3 additions and 3 deletions

View File

@ -67,9 +67,9 @@ def areas(request):
def stops(request): def stops(request):
q = request.GET.get("q", "") q = request.GET.get("q", "")
if q != '': if q != '':
qset = Stop.objects.find_approximate(q, TRIGRAM_THRESHOLD).select_related('road', 'area') qset = Stop.objects.find_approximate(q, TRIGRAM_THRESHOLD)
else: else:
qset = Stop.objects.all().select_related('road', 'area') qset = Stop.objects.all()
srid = int(request.GET.get("srid", 4326)) srid = int(request.GET.get("srid", 4326))
return render_to_json_response({ return render_to_json_response({
'type': 'FeatureCollection', 'type': 'FeatureCollection',