This commit is contained in:
2020-08-29 17:31:41 +01:00
parent d708207ab9
commit 1feb9449ed
9 changed files with 27 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ from django.utils.decorators import method_decorator
# Displays the current rig count along with a few other bits and pieces
@method_decorator(never_cache, name='dispatch') # Disable browser based caching
@method_decorator(never_cache, name='dispatch') # Disable browser based caching
class Index(generic.TemplateView):
template_name = 'index.html'
@@ -34,6 +34,7 @@ class Index(generic.TemplateView):
context['rig_count'] = models.Event.objects.rig_count()
return context
class SecureAPIRequest(generic.View):
models = {
'venue': models.Venue,