Opened 11 hours ago
Last modified 9 hours ago
#36089 closed New feature
Refactor the ManagementUtility to make get_commands a method — at Version 1
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.
Note:
See TracTickets
for help on using tickets.