From e98e5e4e3edf16ea91abff31ec4508fd2861188c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 13 Mar 2019 15:52:05 +0100 Subject: [PATCH] fix GitHub Pretend again --- passbook/pretend/views/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/pretend/views/github.py b/passbook/pretend/views/github.py index bed4c770d..2623bd2b4 100644 --- a/passbook/pretend/views/github.py +++ b/passbook/pretend/views/github.py @@ -10,7 +10,7 @@ class GitHubUserView(View): def verify_access_token(self): """Verify access token manually since github uses /user?access_token=...""" - token = get_object_or_404(AccessToken, token=self.request.get('access_token', '')) + token = get_object_or_404(AccessToken, token=self.request.GET.get('access_token', '')) return token.user def get(self, request):