Hotfix appliqué en prod pour que le site démarre #31

Merged
mpepin merged 3 commits from kerl/hotfix_prod into master 2020-09-12 19:07:13 +02:00
Showing only changes of commit c3f9b26aea - Show all commits

View file

@ -55,9 +55,9 @@ def calendar(request, pYear, pMonth):
lMonth = int(pMonth)
lCalendarFromMonth = datetime(lYear, lMonth, 1)
lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1])
lEvents = Event.objects.filter(date__gte=lCalendarFromMonth,
date__lte=lCalendarToMonth,
calendrier="F")
lEvents = Event.objects.filter(
date__gte=lCalendarFromMonth, date__lte=lCalendarToMonth
)
if request.user.is_authenticated:
lEvents = Event.objects.filter(date__gte=lCalendarFromMonth,
date__lte=lCalendarToMonth)