1. Colin Copeland
  2. django-timepiece

Commits

Colin Copeland  committed ed62f8f

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

  • Participants
  • Parent commits 9556d73
  • Branches default

Comments (0)

Files changed (1)

File timepiece/views.py

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