Changes between Version 1 and Version 3 of Ticket #27044
- Timestamp:
- Aug 10, 2016, 11:09:15 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27044
- Property Summary `apps` passed to post_migrate_signal should have access to migrated apps even when no migration has been applied to them → `apps` passed to post_migrate_signal should contain migrated appconfigs even when no migration has been applied to them
-
Ticket #27044 – Description
v1 v3 1 1 Hi, 2 2 3 I noticed that when one runs `migrate` without arguments (implicitly migrating all apps), the `apps` instance passed to `emit_post_migrate_signal` (https://github.com/django/django/blob/1.10/django/core/management/commands/migrate.py#L221 [here]) contains the migrated apps' configurations only in the first run.3 I noticed that when one runs `migrate` without arguments (implicitly migrating all apps), the `apps` instance passed to `emit_post_migrate_signal` [https://github.com/django/django/blob/1.10/django/core/management/commands/migrate.py#L221 here]) contains the migrated apps' configurations only in the first run. 4 4 5 5 On subsequent runs, the `plan` list ([https://github.com/django/django/blob/1.10/django/core/management/commands/migrate.py#L136 here]) is empty and `post_migrate_apps` is set to `pre_migrate_apps` ([https://github.com/django/django/blob/1.10/django/core/management/commands/migrate.py#L197 here]), i.e. the unmigrated apps.