Opened 3 hours ago

Closed 58 minutes ago

Last modified 58 minutes ago

#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 d9pouces)

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 d9pouces, 3 hours ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 58 minutes ago

Resolution: wontfix
Status: newclosed

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.

comment:3 by Mariusz Felisiak, 58 minutes ago

Cc: Mariusz Felisiak added
Note: See TracTickets for help on using tickets.
Back to Top