Opened 11 years ago
Closed 11 years ago
#24703 closed Cleanup/optimization (fixed)
Use MigrationLoader in squashmigrations
| Reported by: | Marten Kenbeek | Owned by: | Marten Kenbeek |
|---|---|---|---|
| Component: | Migrations | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Just a small thing I noticed: squashmigrations creates a MigrationExecutor, but only ever uses the executor.loader attribute. It would be cleaner to directly use a MigrationLoader, same as in makemigrations and showmigrations.
Change History (4)
comment:1 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 11 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 11 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
PR: https://github.com/django/django/pull/4561