From 74a49b24a8c69297ff028b7c48ac0cbc887eb53d Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 16 Feb 2012 19:33:19 +0530 Subject: [PATCH] order stops in areas view by name --- chaloBEST/mumbai/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/mumbai/views.py b/chaloBEST/mumbai/views.py index 41d9edc..4a1c164 100644 --- a/chaloBEST/mumbai/views.py +++ b/chaloBEST/mumbai/views.py @@ -29,7 +29,7 @@ def areas(request): def area(request, name): area = get_object_or_404(Area, name=name) - stops = Stop.objects.filter(area=area) + stops = Stop.objects.filter(area=area).order_by('name') context = RequestContext(request, { 'area': area, 'stops': stops