personnes: all holidays displayed in descending order

This commit is contained in:
Serghei Mihai 2014-06-12 10:05:13 +02:00
parent 243e22a934
commit f1db8cdd6a
1 changed files with 1 additions and 2 deletions

View File

@ -168,8 +168,7 @@ class WorkerUpdateView(cbv.ServiceViewMixin, cbv.MultiUpdateView):
ctx['timetables'] = timetable
ctx['holidays'] = models.Holiday.objects \
.for_worker(self.object) \
.future() \
.order_by('start_date')
.order_by('-start_date')
try:
holiday = models.Holiday.objects \
.for_worker(self.object) \