Project

General

Profile

« Previous | Next » 

Revision 17b459a8

Added by Serghei Mihai over 11 years ago

agenda: fixing the event type in the appointments listings

View differences:

calebasse/agenda/appointments.py
def init_from_event(self, event, service, validation_states=None):
delta = event.end_datetime - event.start_datetime
self.event = isinstance(event, EventWithAct)
self.event = not isinstance(event, EventWithAct)
self.event_id = event.id
self.length = delta.seconds / 60
self.title = event.title

Also available in: Unified diff