Commits

Jason Moiron committed 74b3841

simplify middleware blacklist loading step

Comments (0)

Files changed (1)

johnny/middleware.py

         if not self.installed and not self.disabled:
             # when we install, lets refresh the blacklist, just in case johnny
             # was loaded before the setting exists somehow...
-            blacklist = settings.BLACKLIST
-            cache.blacklist = set(blacklist)
+            cache.blacklist = settings.BLACKLIST
             self.query_cache_backend = cache.get_backend()(cache_backend)
             self.query_cache_backend.patch()
             self.installed = True