showmigrations --plan should show migrations that would be applied for the given app_labels
If you call showmigrations
with --plan
, any app_label
s that are also applied are ignored. But if you run migrate
with a given app_label
, a plan is followed that only applies migrations for the given app, and any dependencies that were found along the way.
Instead of ignoring any supplied app_label
s, it would make more sense to behave as migrate
does, providing a preview for a probable migration plan.
Change History
(10)
Owner: |
changed from nobody to Sebastian Spiegel
|
Status: |
new → assigned
|
Component: |
Uncategorized → Core (Management commands)
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → New feature
|
Patch needs improvement: |
set
|
Version: |
1.10 → master
|
Patch needs improvement: |
unset
|
Owner: |
Sebastian Spiegel removed
|
Status: |
assigned → new
|
Triage Stage: |
Accepted → Ready for checkin
|
Owner: |
set to Tim Graham <timograham@…>
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Though documentation is explaining why
--plan
is ignoringapp_label
s:(https://docs.djangoproject.com/en/1.10/ref/django-admin/#django-admin-showmigrations)
I agree with the reporter that
showmigrations --plan
should support app labels. It would make it behave analogously tomigrate app_label
.