Files
PyRIGS/RIGS/rigboard.py
2014-11-06 03:32:36 +00:00

16 lines
445 B
Python

from django.views import generic
from RIGS import models
__author__ = 'ghost'
class RigboardIndex(generic.TemplateView):
template_name = 'RIGS/rigboard.html'
def get_context_data(self, **kwargs):
# get super context
context = super(RigboardIndex, self).get_context_data(**kwargs)
# call out method to get current events
context['events'] = models.Event.objects.current_events()
return context