Fix calendar

groupby a besoin que les événements sont ordonnés
This commit is contained in:
Martin Pépin 2016-10-02 01:46:33 +02:00
parent a51de1d7b6
commit 4800675697

View file

@ -8,7 +8,7 @@ class EventCalendar(HTMLCalendar):
def __init__(self, pEvents):
super(EventCalendar, self).__init__()
self.events = self.group_by_day(pEvents)
self.events = self.group_by_day(pEvents.order_by('date'))
def formatday(self, day, weekday):
if day != 0: