Skip to content
Snippets Groups Projects
Commit 33f6b0fe authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

require login to access contribution wizard

Former-commit-id: f20277fa812fe898f4dbe7c6b9975b65d6ba0c8f
parent 721a1b30
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment