Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
33f6b0fe
Commit
33f6b0fe
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/views.py
+2
-1
2 additions, 1 deletion
ippisite/ippidb/views.py
with
2 additions
and
1 deletion
ippisite/ippidb/views.py
+
2
−
1
View file @
33f6b0fe
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment