Commit 6c73a957 authored by Bruno Martin's avatar Bruno Martin
Browse files

fix ident

parent f29e75ea
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment