Commits

Colin Copeland committed ed62f8f

add additional select related to drastically reduce query count on user timesheets

  • Participants
  • Parent commits 9556d73

Comments (0)

Files changed (1)

File timepiece/views.py

         end_time__lt=window.end_date,
     ).select_related(
         'user',
+        'project',
+        'activity',
+        'location',
     ).order_by('start_time')
     if project:
         entries = entries.filter(project=project)