diff --git a/ippisite/ippidb/views.py b/ippisite/ippidb/views.py index 704eb6bb9e13e03e0b569a5e2fe74f00436304e5..328f754e8a44ede178289732d5494995f7b7a73f 100644 --- a/ippisite/ippidb/views.py +++ b/ippisite/ippidb/views.py @@ -6,6 +6,7 @@ from django.db.models import Max, Min, Count from django.shortcuts import render from django.http import HttpResponseRedirect, Http404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger +from django.contrib.auth.mixins import LoginRequiredMixin from formtools.wizard.views import SessionWizardView, NamedUrlSessionWizardView import ippidb @@ -57,7 +58,7 @@ TEMPLATES = {"IdForm": "IdForm.html", } -class IppiWizard(NamedUrlSessionWizardView): +class IppiWizard(LoginRequiredMixin, NamedUrlSessionWizardView): def get_context_data(self, **kwargs): context=super(IppiWizard, self).get_context_data(**kwargs)