#16599: Management commands are collected in the wrong order ---------------------------+------------------------------- Reporter: vanschelven | Owner: nobody Type: Uncategorized | Status: new Milestone: | Component: Uncategorized Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 UI/UX: 0 | ---------------------------+------------------------------- 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 https://code.djangoproject.com/ticket/14924 One could basically read that ticket and replace "translations" by "management commands". In this case, the relevant update statement may be found below: https://code.djangoproject.com/browser/django/trunk/django/core/management/__init__.py?rev=16222#L117 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: https://code.djangoproject.com/changeset/15441#file2 -- Ticket URL: <https://code.djangoproject.com/ticket/16599> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.