-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Currently this project uses the following test to check whether we're migrating:
if not set(sys.argv) & {"makemigrations", "migrate", "showmigrations"}:
return DeprecatedField(return_instead)This check can be too naive, however:
- We directly call
MigrationAutodetectorin our test suite to ensure no missing migrations, but that fails if we adddeprecate_field()anywhere. - We have a custom
manage.py deploycommand which among other things callscall_command("migrate", interactive=False). This now prints warnings:
Your models in app(s): '...' have changes that are not yet reflected in a migration, and so won't be applied.
I haven't looked into better solutions yet, just letting you know of this problem.
Metadata
Metadata
Assignees
Labels
No labels