| 12 | | |
| 13 | | I think the patch is as simple as: |
| 14 | | {{{ |
| 15 | | diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py |
| 16 | | index d98072c66e..f1b8a21c11 100644 |
| 17 | | --- a/django/core/management/commands/migrate.py |
| 18 | | +++ b/django/core/management/commands/migrate.py |
| 19 | | @@ -237,7 +237,7 @@ class Command(BaseCommand): |
| 20 | | self.stdout.write(" No migrations to prune.") |
| 21 | | |
| 22 | | plan = executor.migration_plan(targets) |
| 23 | | - exit_dry = plan and options["check_unapplied"] |
| 24 | | + exit_dry = options["check_unapplied"] |
| 25 | | |
| 26 | | if options["plan"]: |
| 27 | | self.stdout.write("Planned operations:", self.style.MIGRATE_LABEL) |
| 28 | | }}} |