Project

General

Profile

« Previous | Next » 

Revision 5c66ef04

Added by Jérôme Schneider almost 12 years ago

agenda: add occurrences deletion

View differences:

calebasse/agenda/appointments.py
23 23
        self.service_name = None
24 24
        self.patient_record_id = None
25 25
        self.event_id = None
26
        self.occurrence_id = None
26 27
        self.service = None
27 28
        self.workers_initial = None
28 29
        self.weight = 0
......
39 40
    def init_from_occurrence(self, occurrence, service):
40 41
        """ """
41 42
        delta = occurrence.end_time - occurrence.start_time
43
        self.occurrence_id = occurrence.id
42 44
        self.length = delta.seconds / 60
43 45
        self.title = occurrence.title
44 46
        services = occurrence.event.services.all()

Also available in: Unified diff