Event.calendrier is not a bool anymore
This commit is contained in:
parent
6bca22ca66
commit
4247730ce4
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def calendar(request, pYear, pMonth):
|
||||||
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__gte=lCalendarFromMonth,
|
||||||
date__lte=lCalendarToMonth,
|
date__lte=lCalendarToMonth,
|
||||||
calendrier=True)
|
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