summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-08-02 18:50:12 -0400
committerTim Graham <timograham@gmail.com>2016-08-02 18:50:12 -0400
commitccd5a23fba91e66656bb19b60bb6d737cab728f5 (patch)
tree6622d2779a833808a1b464b161ac5230c8d7465f
parentb92c6b7d5641e927145318adaaca1156ce26ddd2 (diff)
Fixed #27000 -- Removed BaseCommand.usage() per deprecation timeline (refs #19973).
-rw-r--r--django/core/management/base.py11
-rw-r--r--docs/releases/1.10.1.txt3
2 files changed, 3 insertions, 11 deletions
diff --git a/django/core/management/base.py b/django/core/management/base.py
index 0a9037c1d1..3726d42150 100644
--- a/django/core/management/base.py
+++ b/django/core/management/base.py
@@ -225,17 +225,6 @@ class BaseCommand(object):
"""
return django.get_version()
- def usage(self, subcommand):
- """
- Return a brief description of how to use this command, by
- default from the attribute ``self.help``.
- """
- usage = '%%prog %s [options] %s' % (subcommand, self.args)
- if self.help:
- return '%s\n\n%s' % (usage, self.help)
- else:
- return usage
-
def create_parser(self, prog_name, subcommand):
"""
Create and return the ``ArgumentParser`` which will be used to
diff --git a/docs/releases/1.10.1.txt b/docs/releases/1.10.1.txt
index 86cd087bdf..97b616bc1d 100644
--- a/docs/releases/1.10.1.txt
+++ b/docs/releases/1.10.1.txt
@@ -14,3 +14,6 @@ Bugfixes
* Allowed ``User.is_authenticated`` and ``User.is_anonymous`` properties to be
compared using ``==`` and ``!=`` (:ticket:`26988`).
+
+* Removed the broken ``BaseCommand.usage()`` method which was for
+ ``optparse`` support (:ticket:`27000`).