Commits

Colin Copeland  committed 80ffb25

order by project name on general ledger

  • Participants
  • Parent commits ed62f8f

Comments (0)

Files changed (1)

File timepiece/views.py

     if to_date:
         dates &= Q(end_time__lte=to_date)
     project_totals = entries.filter(dates).annotate(total_hours=Sum('hours'))
+    project_totals = project_totals.order_by('project__name')
     total_hours = timepiece.Entry.objects.filter(dates).aggregate(
         hours=Sum('hours')
     )['hours']