order stops in areas view by name
This commit is contained in:
parent
c7093ec092
commit
74a49b24a8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user