Commit 47ff4732 authored by fred's avatar fred

fix agenda to display future events

parent 521f9754
......@@ -474,7 +474,7 @@ class Agenda(TemplateView):
context = super(Agenda, self).get_context_data(**kwargs)
context['sectionName'] = "News"
context['agenda'] = NewsItem.objects.filter(
event_date__lte=date.today()).order_by('date')[:20]
event_date__gte=date.today()).order_by('date')[:20]
context['news'] = NewsItem.objects.all().order_by('-date')
return context
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment