diff options
author | th3hamm0r <stefan@hammerworxx.com> | 2022-05-24 13:11:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 13:11:23 +0200 |
commit | 219b00b7375d2531f4c8f8e8f3b84ddcf48c673c (patch) | |
tree | 8e02750561c9091953490a5dd7c8a7dcc1a1fd0c | |
parent | 14cf93d413cc0f8e5438bbf184dc18b613733dc1 (diff) | |
download | django-compressor-219b00b7375d2531f4c8f8e8f3b84ddcf48c673c.tar.gz |
Fixed compatibility with Django 4.1, fixes #1114 (#1115)
-rw-r--r-- | compressor/management/commands/compress.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compressor/management/commands/compress.py b/compressor/management/commands/compress.py index 4a16073..aa09a27 100644 --- a/compressor/management/commands/compress.py +++ b/compressor/management/commands/compress.py @@ -27,6 +27,11 @@ offline_manifest_lock = Lock() class Command(BaseCommand): help = "Compress content outside of the request/response cycle" + if django.VERSION >= (3, 2): + requires_system_checks = [] + else: + requires_system_checks = False + def add_arguments(self, parser): parser.add_argument('--extension', '-e', action='append', dest='extensions', help='The file extension(s) to examine (default: ".html", ' @@ -322,5 +327,3 @@ class Command(BaseCommand): final_offline_manifest.update(offline_manifest) write_offline_manifest(final_offline_manifest) return final_block_count, final_results - -Command.requires_system_checks = False |