Management commands are collected in the wrong order
|Reported by:||Klaas van Schelven||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.3|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When multiple management commands of the same name exist, the ones found in apps higher in the INSTALLED_APPS should get precedence; right now, it's reversed.
This is completely analogous to the problem described (and fixed) in
One could basically read that ticket and replace "translations" by "management commands".
In this case, the relevant update statement may be found below:
I'm awfully sorry, don't have the time now to submit a patch. My thoughts would be: either run through the apps in reversed direction, or don't work with an update statement, but rather only add values to the dict if they're not present yet.
The previous, analogous solution is indeed based on 'reversed' and may be found here:
Change History (8)
comment:1 Changed 5 years ago by
|Component:||Uncategorized → Core (Management commands)|
|Status:||new → closed|
|Type:||Uncategorized → Bug|