X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4045bf3f53908c502fbc40769a894ba2f1340d44..a802a933f53625f732e9d3807b4162e770c8aaf1:/apps/apiclient/views.py?ds=sidebyside diff --git a/apps/apiclient/views.py b/apps/apiclient/views.py index 88f4b49b..0dbaf5ac 100644 --- a/apps/apiclient/views.py +++ b/apps/apiclient/views.py @@ -22,7 +22,7 @@ def oauth(request): raise Exception("Invalid response %s." % resp['status']) request_token = dict(urlparse.parse_qsl(content)) - + conn = OAuthConnection.get(request.user) # this might reset existing auth! conn.access = False @@ -31,7 +31,7 @@ def oauth(request): conn.save() url = "%s?oauth_token=%s&oauth_callback=%s" % ( - WL_AUTHORIZE_URL, + WL_AUTHORIZE_URL, request_token['oauth_token'], request.build_absolute_uri(reverse("apiclient_oauth_callback")), )