]> git.parisson.com Git - django-social-auth.git/commitdiff
remove 'enabled' in that subclass at all, let the base class do the work.
authorTim Babych <tim.babych@gmail.com>
Mon, 9 Apr 2012 23:04:19 +0000 (02:04 +0300)
committerTim Babych <tim.babych@gmail.com>
Mon, 9 Apr 2012 23:04:19 +0000 (02:04 +0300)
social_auth/backends/contrib/linkedin.py

index 83506abcc1e511e7179aeba87499598cdeda9501..910a0a291712a2f2d443420df8bb8dab1fc2da46 100644 (file)
@@ -62,10 +62,6 @@ class LinkedinAuth(ConsumerBasedOAuth):
         except (ExpatError, KeyError, IndexError):
             return None
 
-    @classmethod
-    def enabled(cls):
-        """Return backend enabled status by checking basic settings"""
-        return setting(cls.SETTINGS_KEY_NAME) and setting(cls.SETTINGS_SECRET_NAME)
 
 def to_dict(xml):
     """Convert XML structure to dict recursively, repeated keys entries