From: Tim Babych Date: Mon, 9 Apr 2012 23:04:19 +0000 (+0300) Subject: remove 'enabled' in that subclass at all, let the base class do the work. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=672a3af4b68ca9d4206ee254a7191d3217d36aad;p=django-social-auth.git remove 'enabled' in that subclass at all, let the base class do the work. --- diff --git a/social_auth/backends/contrib/linkedin.py b/social_auth/backends/contrib/linkedin.py index 83506ab..910a0a2 100644 --- a/social_auth/backends/contrib/linkedin.py +++ b/social_auth/backends/contrib/linkedin.py @@ -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