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 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 (1)

comment:1 by d9pouces, 11 hours ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top