From 9ba2e8821fd88205f029b0e515015ddfb938ba12 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 24 Jul 2022 22:55:52 -0700 Subject: [PATCH] Removed obsolete note in management.get_commands() docstring. Commit 901c3708fb8a2e51bddd37358f8e536282a8c266 documented that the return dict could directly include command modules instead of name strings, which was true at the time. However, that possibility was removed in commit 38f1fe3b35c212136d959538a309c33bf2d340a9. --- django/core/management/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 7049e06474..6ef47a0436 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -65,10 +65,6 @@ def get_commands(): pairs from this dictionary can then be used in calls to load_command_class(app_name, command_name) - If a specific version of a command must be loaded (e.g., with the - startapp command), the instantiated module can be placed in the - dictionary in place of the application name. - The dictionary is cached on the first call and reused on subsequent calls. """