]> git.parisson.com Git - django-social-auth.git/commitdiff
Cleaned up whitespace.
authorStephen McDonald <steve@jupo.org>
Thu, 29 Dec 2011 01:38:26 +0000 (12:38 +1100)
committerStephen McDonald <steve@jupo.org>
Thu, 29 Dec 2011 01:38:26 +0000 (12:38 +1100)
social_auth/context_processors.py

index db9b051a584951740a9a00daf74b8f8435f24b96..d1e9f1807a50477a15f4c9a0502c22e91ace0cef 100644 (file)
@@ -29,18 +29,18 @@ def social_auth_by_type_backends(request):
 def social_auth_by_name_backends(request):
     """Load Social Auth current user data to context.
     Will add a social_auth object whose attribute names are the names of each
-    provider, e.g. social_auth.facebook would be the facebook association or 
+    provider, e.g. social_auth.facebook would be the facebook association or
     None, depending on the logged in user's current associations. Providers
-    with a hyphen have the hyphen replaced with an underscore, e.g. 
+    with a hyphen have the hyphen replaced with an underscore, e.g.
     google-oauth2 becomes google_oauth2 when referenced in templates.
     """
     keys = BACKENDS.keys()
     accounts = dict(zip(keys, [None] * len(keys)))
-    
+
     if isinstance(request.user, User) and request.user.is_authenticated():
         for associated in request.user.social_auth.all():
             accounts[associated.provider.replace('-', '_')] = associated
-    
+
     return {'social_auth': accounts}