On corrige un bug en cas d'absence d'heure
This commit is contained in:
parent
0c3e4b2624
commit
98a13aee35
@ -1120,7 +1120,11 @@ class Event(models.Model):
|
|||||||
)
|
)
|
||||||
self._proposed_events = sorted(
|
self._proposed_events = sorted(
|
||||||
self._proposed_events,
|
self._proposed_events,
|
||||||
key=lambda e: (e.start_day, e.start_time, e.title),
|
key=lambda e: (
|
||||||
|
e.start_day,
|
||||||
|
e.start_time if e.start_time else datetime.min.time(),
|
||||||
|
e.title,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
return self._proposed_events
|
return self._proposed_events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user