X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4045bf3f53908c502fbc40769a894ba2f1340d44..7197b4d1501ff6d1f826f17f9944c1c763e1d924:/apps/apiclient/views.py 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")), )