Commits

Mikela Clemmons committed 194628d

changed tag such that it only shows upcoming events

Comments (0)

Files changed (1)

events/templatetags/event_tags.py

 def lastest_events(count):
     events = None
     if isinstance(count, int):
-        events = models.Event.objects.order_by('-begin_date')[:count]
+        events = models.Event.published.upcoming().order_by('-begin_date')[:count]
     return {'events': events}