Skip to content
Snippets Groups Projects
Commit 230f45a7 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithms][api] Fix key search in dictionary

parent e184af88
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
...@@ -177,7 +177,7 @@ def binary(request, author_name, object_name, version=None): ...@@ -177,7 +177,7 @@ def binary(request, author_name, object_name, version=None):
if request.user.is_anonymous() or (request.user.username != author_name): if request.user.is_anonymous() or (request.user.username != author_name):
return HttpResponseForbidden() return HttpResponseForbidden()
if not request.FILES.has_key('binary'): if 'binary' not in request.FILES:
return HttpResponseBadRequest() return HttpResponseBadRequest()
file = request.FILES['binary'] file = request.FILES['binary']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment