Project

General

Profile

« Previous | Next » 

Revision 7b395367

Added by Benjamin Dauvergne about 13 years ago

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

View differences:

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

Also available in: Unified diff