Fix calendar
groupby a besoin que les événements sont ordonnés
This commit is contained in:
parent
a51de1d7b6
commit
4800675697
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class EventCalendar(HTMLCalendar):
|
||||||
|
|
||||||
def __init__(self, pEvents):
|
def __init__(self, pEvents):
|
||||||
super(EventCalendar, self).__init__()
|
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):
|
def formatday(self, day, weekday):
|
||||||
if day != 0:
|
if day != 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue