Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
6c73a957
Commit
6c73a957
authored
Feb 05, 2019
by
Bruno Martin
Browse files
fix ident
parent
f29e75ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base_django_project/users/views.py
base_django_project/users/views.py
+1
-1
No files found.
base_django_project/users/views.py
View file @
6c73a957
...
...
@@ -131,7 +131,7 @@ class TwitterAccessToken(generics.GenericAPIView):
def
get_api_key
(
request
):
if
request
.
user
.
id
is
None
:
raise
Http404
raise
Http404
token
=
Token
.
objects
.
get_or_create
(
user
=
request
.
user
)
return
JsonResponse
({
'key'
:
token
[
0
].
key
},
status
=
200
)
Write
Preview
Markdown
is supported
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