order stops in areas view by name

This commit is contained in:
Sanj 2012-02-16 19:33:19 +05:30
parent c7093ec092
commit 74a49b24a8

View File

@ -29,7 +29,7 @@ def areas(request):
def area(request, name): def area(request, name):
area = get_object_or_404(Area, name=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, { context = RequestContext(request, {
'area': area, 'area': area,
'stops': stops 'stops': stops