diff --git a/allauth_ens/templatetags/allauth_ens.py b/allauth_ens/templatetags/allauth_ens.py index e00c6b6..f814a8a 100644 --- a/allauth_ens/templatetags/allauth_ens.py +++ b/allauth_ens/templatetags/allauth_ens.py @@ -37,5 +37,6 @@ def is_open_for_signup(context): @simple_tag def is_clipper_highlighted(): - return ('allauth_ens.providers.clipper' in getattr(settings, 'INSTALLED_APPS', [])) \ + installed_apps = getattr(settings, 'INSTALLED_APPS', []) + return ('allauth_ens.providers.clipper' in installed_apps) \ and getattr(settings, 'ALLAUTH_ENS_HIGHLIGHT_CLIPPER', True)