Merge pull request #702 from kinsights/develop

Implement handle() method on compress command in place of handle_noargs().
This commit is contained in:
Mathieu Pillard
2015-12-11 09:58:41 -05:00

View File

@@ -262,7 +262,7 @@ class Command(BaseCommand):
ext_list[i] = '.%s' % ext_list[i]
return set(ext_list)
def handle_noargs(self, **options):
def handle(self, **options):
if not settings.COMPRESS_ENABLED and not options.get("force"):
raise CommandError(
"Compressor is disabled. Set the COMPRESS_ENABLED "