More fixes for today -> today()

This commit is contained in:
Magnus Hagander
2016-05-14 21:50:15 +02:00
parent 79350c87d9
commit 04d458d13e
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ def get_struct():
# We only show events in the future, so only index events in the
# future...
for n in Event.objects.filter(approved=True, enddate__gt=date.today):
for n in Event.objects.filter(approved=True, enddate__gt=now):
yearsold = (now - n.startdate).days / 365
if yearsold > 4:
yearsold = 4