Fix d'un warning conversion
This commit is contained in:
parent
a4d7754b3c
commit
6902ba22f4
@ -131,8 +131,8 @@ class CalendarList:
|
||||
qs = Event.objects.all()
|
||||
else:
|
||||
qs = self.filter.qs
|
||||
startdatetime = datetime.combine(self.c_firstdate, time.min)
|
||||
lastdatetime = datetime.combine(self.c_lastdate, time.max)
|
||||
startdatetime = timezone.make_aware(datetime.combine(self.c_firstdate, time.min), timezone.get_default_timezone())
|
||||
lastdatetime = timezone.make_aware(datetime.combine(self.c_lastdate, time.max), timezone.get_default_timezone())
|
||||
self.events = qs.filter(
|
||||
(Q(recurrence_dtend__isnull=True) & Q(recurrence_dtstart__lte=lastdatetime))
|
||||
| (
|
||||
|
Loading…
Reference in New Issue
Block a user