Working rigboard. Thank fuck...

This commit is contained in:
tomtom5152
2014-11-06 03:32:36 +00:00
parent 3f5cc920cb
commit c62c41b06f
5 changed files with 142 additions and 2 deletions

16
RIGS/rigboard.py Normal file
View File

@@ -0,0 +1,16 @@
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