From b4002a214399d8619965f40e153ca3f7dcb20904 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 2 Sep 2015 18:47:42 -0400 Subject: Refs #22835 -- Removed NoArgsCommand per deprecation timeline. --- docs/howto/custom-management-commands.txt | 16 ---------------- docs/internals/deprecation.txt | 2 +- docs/releases/1.8.txt | 6 +++--- 3 files changed, 4 insertions(+), 20 deletions(-) (limited to 'docs') diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt index cc7653dd8e..ac89dd0ded 100644 --- a/docs/howto/custom-management-commands.txt +++ b/docs/howto/custom-management-commands.txt @@ -352,22 +352,6 @@ Rather than implementing :meth:`~BaseCommand.handle`, subclasses must implement Perform the command's actions for ``label``, which will be the string as given on the command line. -.. class:: NoArgsCommand - -.. deprecated:: 1.8 - - Use :class:`BaseCommand` instead, which takes no arguments by default. - -A command which takes no arguments on the command line. - -Rather than implementing :meth:`~BaseCommand.handle`, subclasses must implement -:meth:`~NoArgsCommand.handle_noargs`; :meth:`~BaseCommand.handle` itself is -overridden to ensure no arguments are passed to the command. - -.. method:: NoArgsCommand.handle_noargs(**options) - - Perform this command's actions - .. _ref-command-exceptions: Command exceptions diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 99e293d9a9..3bc858742b 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -130,7 +130,7 @@ details on these changes. * Support for :py:mod:`optparse` will be dropped for custom management commands (replaced by :py:mod:`argparse`). -* The class :class:`~django.core.management.NoArgsCommand` will be removed. Use +* The class ``django.core.management.NoArgsCommand`` will be removed. Use :class:`~django.core.management.BaseCommand` instead, which takes no arguments by default. diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index e6b606505f..da31963876 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -1384,9 +1384,9 @@ arguments through ``argparse.add_argument()``. See ``django.core.management.NoArgsCommand`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The class :class:`~django.core.management.NoArgsCommand` is now deprecated and -will be removed in Django 1.10. Use :class:`~django.core.management.BaseCommand` -instead, which takes no arguments by default. +The class ``NoArgsCommand`` is now deprecated and will be removed in Django +1.10. Use :class:`~django.core.management.BaseCommand` instead, which takes no +arguments by default. Listing all migrations in a project ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3