From 9d69176914ca8df9ab2593fcec3b00d92a7da03e Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 15 Sep 2011 15:13:06 +0200 Subject: [PATCH] Fixed bug introduced in 1.0 with regard to COMPRESS_ENABLED. Fixes #119. --- compressor/conf.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compressor/conf.py b/compressor/conf.py index 9b354fe..569804d 100644 --- a/compressor/conf.py +++ b/compressor/conf.py @@ -8,7 +8,7 @@ from appconf import AppConf class CompressorConf(AppConf): # Main switch - ENABLED = False + ENABLED = not settings.DEBUG # Allows changing verbosity from the settings. VERBOSE = False # GET variable that disables compressor e.g. "nocompress" @@ -64,9 +64,6 @@ class CompressorConf(AppConf): class Meta: prefix = 'compress' - def configure_enabled(self, value): - return value or not settings.DEBUG - def configure_root(self, value): if value is None: value = getattr(settings, 'STATIC_ROOT', None)