mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #22835 -- Deprecated NoArgsCommand.
This commit is contained in:
committed by
Tim Graham
parent
63670a474c
commit
9996158db4
@@ -1,9 +1,9 @@
|
||||
from django.core.management.base import NoArgsCommand
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
class Command(BaseCommand):
|
||||
help = "Test No-args commands"
|
||||
requires_system_checks = False
|
||||
|
||||
def handle_noargs(self, **options):
|
||||
print('EXECUTE:NoArgsCommand options=%s' % sorted(options.items()))
|
||||
def handle(self, **options):
|
||||
print('EXECUTE: noargs_command options=%s' % sorted(options.items()))
|
||||
|
||||
Reference in New Issue
Block a user