caktus/django-timepiece — comment on commit dcb3a550220dd3e57c57f1ad84cc238757bb2136
File: timepiece/views.py line 1127
By copelco:

I think this is a good step forward to optimizing the payroll weekly summary, but it may be a big step for getting something out by Friday. My original thought was to simply filter rps down by user. So still do the timepiece.Entry.objects.filter(...).values_list('user', flat=True).distinct(), then just add rps = rps.filter(user__in=user_ids). If you think we can get this way in by Friday, I'm open to it. Let me know if you want to chat about it.