Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
2cb34bc4
Commit
2cb34bc4
authored
Aug 29, 2015
by
Enrico Zini
Browse files
Fixed a RemovedInDjango19Warning
parent
1ac10f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
apikeys/__init__.py
View file @
2cb34bc4
...
...
@@ -19,7 +19,6 @@ from __future__ import print_function
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
unicode_literals
from
.
import
models
as
amodels
def
authenticate
(
request
):
"""
...
...
@@ -27,6 +26,7 @@ def authenticate(request):
Returns the User if one was found, else None
"""
from
.
import
models
as
amodels
value
=
request
.
META
.
get
(
"HTTP_API_KEY"
,
None
)
if
value
is
None
:
return
None
...
...
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