mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-01 12:52:15 +00:00
Working rigboard. Thank fuck...
This commit is contained in:
16
RIGS/rigboard.py
Normal file
16
RIGS/rigboard.py
Normal 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
|
||||
Reference in New Issue
Block a user