From: Sid Mitra Date: Tue, 10 Jan 2012 04:29:42 +0000 (+0530) Subject: Passing request instance to pipeline methods. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2c66d49af93754ce48effdf93ecaed2db590894b;p=django-social-auth.git Passing request instance to pipeline methods. --- diff --git a/social_auth/backends/__init__.py b/social_auth/backends/__init__.py index 29e368b..28e836a 100644 --- a/social_auth/backends/__init__.py +++ b/social_auth/backends/__init__.py @@ -101,7 +101,6 @@ class SocialAuthBackend(ModelBackend): response = kwargs.get('response') details = self.get_user_details(response) uid = self.get_user_id(details, response) - out = self.pipeline(PIPELINE, backend=self, uid=uid, social_user=None, details=details, is_new=False, *args, **kwargs) @@ -117,7 +116,7 @@ class SocialAuthBackend(ModelBackend): user.is_new = kwargs.get('is_new') return user - def pipeline(self, pipeline, request, *args, **kwargs): + def pipeline(self, pipeline, *args, **kwargs): """Pipeline""" out = kwargs.copy()