django-js-reverse icon indicating copy to clipboard operation
django-js-reverse copied to clipboard

Django 4.1 fails - removal of boolean value for requires_system_checks

Open davmlaw opened this issue 3 years ago • 0 comments

Changelog says: Support for using a boolean value in BaseCommand.requires_system_checks is removed.

The management command current fails with:

$ python3 manage.py collectstatic_js_reverse
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 279, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 49, in load_command_class
    return module.Command()
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 274, in __init__
    raise TypeError("requires_system_checks must be a list or tuple.")
TypeError: requires_system_checks must be a list or tuple.

davmlaw avatar Aug 15 '22 07:08 davmlaw