personnes: holidays properly fetched when persons list displayed

This commit is contained in:
Serghei Mihai 2013-12-19 16:19:30 +01:00
parent adf1c6a5b7
commit 672109c517
No known key found for this signature in database
GPG Key ID: 76D1C964BF2FA1AF
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class WorkerView(cbv.ListView):
for worker in qs:
worker.holiday = True
else:
qs2 = models.Holiday.objects.today()
qs2 = models.Holiday.objects.today().filter(worker__isnull=False)
worker_dict = dict(((w.id, w) for w in qs))
for worker in qs:
worker.holiday = False