Project

General

Profile

« Previous | Next » 

Revision 7b395367

Added by Benjamin Dauvergne over 12 years ago

agenda: init time and _duration when creating acts for a rdv

View differences:

calebasse/agenda/models.py
414 414
        from ..actes.models import Act, ActValidationState
415 415
        today = today or self.start_datetime.date()
416 416
        act, created = Act.objects.get_or_create(patient=self.patient,
417
                time=self.start_datetime.time(),
418
                _duration=self.timedelta().seconds // 60,
417 419
                parent_event=getattr(self, 'parent', self),
418 420
                date=today,
419 421
                act_type=self.act_type)

Also available in: Unified diff