#36089 closed New feature (wontfix)
Refactor the ManagementUtility to make get_commands a method
Reported by: | d9pouces | Owned by: | |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | commands ManagementUtility |
Cc: | Mariusz Felisiak | Triage Stage: | Unreviewed |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The ManagementUtility directly uses the get_commands
function instead of encapsulating it in a method that could be overridden, for example to exclude some unwanted Django commands.
To ensure compatibility, the simplest way is to add a get_management_commands
method to ManagementUtility that only calls the original get_commands
function.
Change History (3)
comment:1 by , 3 hours ago
Description: | modified (diff) |
---|
comment:2 by , 58 minutes ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 by , 58 minutes ago
Cc: | added |
---|
Note:
See TracTickets
for help on using tickets.
I don't see any reason to exclude management commands, or at least this is not something that would be widely used. Please first start a discussion on the DevelopersMailingList, where you'll reach a wider audience and see what other think, and follow the guidelines with regards to requesting features.