Permalink
Browse files

list city wards by number

  • Loading branch information...
1 parent 824a354 commit a3b7509919847afa18cffe05a49ad0ee1b48604c @visiblegovernment committed Oct 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mainapp/views/cities.py
View
@@ -23,7 +23,7 @@ def show( request, city ):
"google": google,
'top_problems': top_problems,
'city_totals' : City.objects.filter(id=city.id).annotate(**ReportCounters('ward__report','10 years'))[0],
- "report_counts": Ward.objects.filter(city=city).annotate(**ReportCounters('report'))
+ "report_counts": Ward.objects.filter(city=city).order_by('number').annotate(**ReportCounters('report'))
},
context_instance=RequestContext(request))

0 comments on commit a3b7509

Please sign in to comment.