Project

General

Profile

« Previous | Next » 

Revision 784abc51

Added by Serghei Mihai over 9 years ago

agenda: display the arrivals and departure for other services

Closes #2532

View differences:

calebasse/agenda/views.py
558 558
        worker = Worker.objects.get(id=worker_id)
559 559

  
560 560
        time_tables_worker = TimeTable.objects.select_related('worker'). \
561
                filter(services=self.service, worker=worker) \
561
                filter(worker=worker) \
562 562
                .for_today(self.date) \
563 563
                .order_by('start_date') \
564 564
                .select_related()
565

  
565 566
        holidays_worker = Holiday.objects.for_worker(worker) \
566 567
                .for_period(self.date, self.date) \
567 568
                .order_by('start_date') \

Also available in: Unified diff