Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

list city wards by number

  • Loading branch information...
commit a3b7509919847afa18cffe05a49ad0ee1b48604c 1 parent 824a354
Jennifer Bell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mainapp/views/cities.py
2  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))
Please sign in to comment.
Something went wrong with that request. Please try again.