Project

General

Profile

« Previous | Next » 

Revision d82279fb

Added by Benjamin Dauvergne over 12 years ago

new appointment form: use the patient name for the title

View differences:

calebasse/agenda/forms.py
54 54
                    self.cleaned_data['time'])
55 55
        end_datetime = start_datetime + timedelta(
56 56
                minutes=self.cleaned_data['duration'])
57
        patient = self.cleaned_data['patient']
57 58
        self.instance = EventAct.objects.create_patient_appointment(
58
                title='title #FIXME#',
59
                patient=self.cleaned_data['patient'],
59
                title='Rdv ' + patient.display_name,
60
                patient=patient,
60 61
                participants=self.cleaned_data['participants'],
61 62
                act_type=self.cleaned_data['act_type'],
62 63
                service=self.service,

Also available in: Unified diff