Optimisation de la requête pour remplir l'agend
This commit is contained in:
parent
59f42c1f7d
commit
bcb60fe0c0
@ -161,7 +161,7 @@ class CalendarList:
|
||||
| Q(recurrence_dtend__lt=startdatetime)
|
||||
)
|
||||
)
|
||||
).order_by("start_time")
|
||||
).order_by("start_time").prefetch_related("exact_location").prefetch_related("category")
|
||||
|
||||
firstdate = datetime.fromordinal(self.c_firstdate.toordinal())
|
||||
if firstdate.tzinfo is None or firstdate.tzinfo.utcoffset(firstdate) is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user