Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andreas Rimolsrønning
tdt4242-base
Commits
a175f063
Commit
a175f063
authored
Apr 16, 2021
by
and
Browse files
Fixed If Not Cond Convention
parent
9c3cde63
Pipeline
#128701
passed with stage
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/secfit/workouts/views.py
View file @
a175f063
...
...
@@ -71,7 +71,7 @@ class RememberMe(
serializer_class
=
RememberMeSerializer
def
get
(
self
,
request
):
if
request
.
user
.
is_authenticated
==
False
:
if
not
request
.
user
.
is_authenticated
:
raise
PermissionDenied
else
:
return
Response
({
"remember_me"
:
self
.
rememberme
()})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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