fix: Add login required on all remaining views

This commit is contained in:
James Graham
2020-03-30 20:52:09 +01:00
parent 1bc45b1106
commit 834fb3c644
4 changed files with 18 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
"""
Views belonging to the core of the project.
These views don't represent any of the models in the apps.
"""
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
@@ -5,5 +12,5 @@ class IndexView(TemplateView):
template_name = 'index.html'
class ExportListView(TemplateView):
class ExportListView(LoginRequiredMixin, TemplateView):
template_name = 'export.html'