diff --git a/cal/views.py b/cal/views.py index d0734a2..00269ef 100644 --- a/cal/views.py +++ b/cal/views.py @@ -43,14 +43,17 @@ def formatday(self, day, weekday): .exclude(startDate__gt=next_day) .exclude(endDate__lt=this_day, endDate__isnull=False) .exclude(endDate__isnull=True, startDate__lt=this_day)): + start_day = event.startDate.date() + end_day = (event.endDate or event.startDate).date() + body.append('