]> git.0d.be Git - panikweb.git/commitdiff
fix agenda to display future events
authorFrédéric Péters <fpeters@0d.be>
Mon, 6 Apr 2015 09:31:29 +0000 (11:31 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 6 Apr 2015 09:31:29 +0000 (11:31 +0200)
panikweb/views.py

index cd5a1dda1d98dae02941cc1a70b01d171466ea1c..26339866477e3e438202a8461a96a78e6a9e4e7e 100644 (file)
@@ -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