mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #31546 -- Allowed specifying list of tags in Command.requires_system_checks.
This commit is contained in:
committed by
Carlton Gibson
parent
a4e6030904
commit
c60524c658
@@ -3,7 +3,7 @@ from django.core.management.base import AppCommand
|
||||
|
||||
class Command(AppCommand):
|
||||
help = 'Test Application-based commands'
|
||||
requires_system_checks = False
|
||||
requires_system_checks = []
|
||||
|
||||
def handle_app_config(self, app_config, **options):
|
||||
print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items())))
|
||||
|
||||
@@ -3,7 +3,7 @@ from django.core.management.base import BaseCommand
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Test basic commands'
|
||||
requires_system_checks = False
|
||||
requires_system_checks = []
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument('args', nargs='*')
|
||||
|
||||
@@ -3,7 +3,7 @@ from django.core.management.base import LabelCommand
|
||||
|
||||
class Command(LabelCommand):
|
||||
help = "Test Label-based commands"
|
||||
requires_system_checks = False
|
||||
requires_system_checks = []
|
||||
|
||||
def handle_label(self, label, **options):
|
||||
print('EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items())))
|
||||
|
||||
@@ -3,7 +3,7 @@ from django.core.management.base import BaseCommand
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Test No-args commands"
|
||||
requires_system_checks = False
|
||||
requires_system_checks = []
|
||||
|
||||
def handle(self, **options):
|
||||
print('EXECUTE: noargs_command options=%s' % sorted(options.items()))
|
||||
|
||||
Reference in New Issue
Block a user