mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #32355 -- Dropped support for Python 3.6 and 3.7
This commit is contained in:
parent
9c6ba87692
commit
ec0ff40631
33 changed files with 59 additions and 274 deletions
|
@ -1,11 +1,9 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
from django.utils.version import PY37
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
def add_arguments(self, parser):
|
||||
kwargs = {'required': True} if PY37 else {}
|
||||
subparsers = parser.add_subparsers(dest='subcommand', **kwargs)
|
||||
subparsers = parser.add_subparsers(dest='subcommand', required=True)
|
||||
parser_foo = subparsers.add_parser('foo')
|
||||
parser_foo.add_argument('--bar')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue