mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #22835 -- Deprecated NoArgsCommand.
This commit is contained in:
committed by
Tim Graham
parent
63670a474c
commit
9996158db4
@@ -471,3 +471,10 @@ to add custom arguments to commands has changed: instead of extending the
|
||||
:meth:`~django.core.management.BaseCommand.add_arguments` method and add
|
||||
arguments through ``argparse.add_argument()``. See
|
||||
:ref:`this example <custom-commands-options>` for more details.
|
||||
|
||||
``django.core.management.NoArgsCommand``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The class :class:`~django.core.management.NoArgsCommand` is now deprecated and
|
||||
will be removed in Django 2.0. Use :class:`~django.core.management.BaseCommand`
|
||||
instead, which takes no arguments by default.
|
||||
|
||||
Reference in New Issue
Block a user