Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
1ca372f5
Commit
1ca372f5
authored
Jan 29, 2021
by
Fabien MAREUIL
Browse files
style black
parent
2acbeee8
Pipeline
#46850
passed with stages
in 19 minutes and 17 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
ippisite/ippisite/views.py
View file @
1ca372f5
# -*- coding: utf-8 -*-
from
django.http
import
HttpResponseRedirect
from
maintenance_mode.core
import
set_maintenance_mode
...
...
@@ -13,7 +10,7 @@ def maintenance_mode_off(request):
if
request
.
user
.
is_superuser
:
set_maintenance_mode
(
False
)
return
HttpResponseRedirect
(
'
/admin
'
)
return
HttpResponseRedirect
(
"
/admin
"
)
def
maintenance_mode_on
(
request
):
...
...
@@ -24,4 +21,4 @@ def maintenance_mode_on(request):
if
request
.
user
.
is_superuser
:
set_maintenance_mode
(
True
)
return
HttpResponseRedirect
(
'/admin'
)
\ No newline at end of file
return
HttpResponseRedirect
(
"/admin"
)
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment