Event.calendrier is not a bool anymore

This commit is contained in:
Martin Pépin 2020-09-11 20:23:23 +02:00
parent 6bca22ca66
commit 4247730ce4
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

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