#31546: Replace Command.requires_system_checks = True by something like
Command.required_system_checks = '__all__'
-------------------------------------+-------------------------------------
               Reporter:  Hasan      |          Owner:  nobody
  Ramezani                           |
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:  Core       |        Version:  master
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Created based on Simon
 [https://github.com/django/django/pull/12869#discussion_r421127952 comment
 on the PR]

 This makes me wonder if we want to replace `Command.requires_system_checks
 = True` by something like `Command.required_system_checks = '__all__'`
 that can be set to an empty list to achieve `required_system_checks =
 False` and allow subclasses that want only a subset to specify tags
 through it e.g. `required_system_checks = ['staticfiles']`. That would
 prevent having do to the manual and error prone `options['skip_checks']
 dance`. In all cases that should be done in a different PR.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31546>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.fc2f3749258d89611661c9152b7f16b0%40djangoproject.com.

Reply via email to