mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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`). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user