#23975 closed Bug (fixed)
No pre_migrate signal emitted if all installed apps have migrations
| Reported by: | Mikhail Podgurskiy | Owned by: | Tim Graham |
|---|---|---|---|
| Component: | Migrations | Version: | 1.7 |
| Severity: | Release blocker | Keywords: | signals |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The sync_db() function is the only place where pre_migrate signal is emitted. And it's called only in case if there is apps without migrations.
https://github.com/django/django/blob/bac7664f274be834a09e037331889959f04a75e7/django/core/management/commands/migrate.py#L156
https://github.com/django/django/blob/bac7664f274be834a09e037331889959f04a75e7/django/core/management/commands/migrate.py#L252
If all installed applications have migrations, no pre_migrate signal happens.
Change History (5)
comment:1 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Severity: | Normal → Release blocker |
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
| Has patch: | set |
|---|
comment:3 by , 11 years ago
| Summary: | No pre migrate signal emmited if all installed apps have migrations → No pre_migrate signal emitted if all installed apps have migrations |
|---|
comment:4 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
PR