Hotfix appliqué en prod pour que le site démarre #31
1 changed files with 3 additions and 3 deletions
|
@ -55,9 +55,9 @@ def calendar(request, pYear, pMonth):
|
||||||
lMonth = int(pMonth)
|
lMonth = int(pMonth)
|
||||||
lCalendarFromMonth = datetime(lYear, lMonth, 1)
|
lCalendarFromMonth = datetime(lYear, lMonth, 1)
|
||||||
lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1])
|
lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1])
|
||||||
lEvents = Event.objects.filter(date__gte=lCalendarFromMonth,
|
lEvents = Event.objects.filter(
|
||||||
date__lte=lCalendarToMonth,
|
date__gte=lCalendarFromMonth, date__lte=lCalendarToMonth
|
||||||
calendrier="F")
|
)
|
||||||
if request.user.is_authenticated:
|
if request.user.is_authenticated:
|
||||||
lEvents = Event.objects.filter(date__gte=lCalendarFromMonth,
|
lEvents = Event.objects.filter(date__gte=lCalendarFromMonth,
|
||||||
date__lte=lCalendarToMonth)
|
date__lte=lCalendarToMonth)
|
||||||
|
|
Loading…
Reference in a new issue