Skip to content

Commit

Permalink
Fixed compatibility with Django 4.1, fixes #1114 (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
th3hamm0r committed May 24, 2022
1 parent 14cf93d commit 219b00b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compressor/management/commands/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
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", '
Expand Down Expand Up @@ -322,5 +327,3 @@ def handle_inner(self, **options):
final_offline_manifest.update(offline_manifest)
write_offline_manifest(final_offline_manifest)
return final_block_count, final_results

Command.requires_system_checks = False

0 comments on commit 219b00b

Please sign in to comment.