Steve Losh  committed 7f6dd40

Fix the settings checks to work with django-trunk.

  • Participants
  • Parent commits e955e83
  • Branches default

Comments (0)

Files changed (2)

File hoptoad/

 class HoptoadNotifierMiddleware(object):
     def __init__(self):
         """Initialize the middleware."""
-        all_settings = settings.get_all_members()
+        all_settings = dir(settings)
         if 'HOPTOAD_API_KEY' not in all_settings or not settings.HOPTOAD_API_KEY:
             raise MiddlewareNotUsed

File hoptoad/

     def test_api_key_present(self):
         """Test to make sure an API key is present."""
-        self.assertTrue('HOPTOAD_API_KEY' in settings.get_all_members(),
+        self.assertTrue('HOPTOAD_API_KEY' in dir(settings)
             msg='The HOPTOAD_API_KEY setting is not present.')
             msg='The HOPTOAD_API_KEY setting is blank.')