You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the Group model is swapped, and then the makemigrations command is run, django attempts to create a 7th migration within django-automations
Expected behavior
Running makemigrations within an end-user's project should have no effect on django-automations. All migrations should be provided complete with the package.
Additional context
I think I've got the issue sorted out, which involves manual creation of a new migration with:
dependency on migrations.swappable_dependency(settings.get_group_model_setting()),
an AlterField operation modifying the interaction_group field with to=settings.get_group_model_setting()
and finally, change in django-automation's settings to how the group model is retrieved
The last thing I'm still trying to pin down is the testing. After I get that resolved, I'll submit a PR to correct the behavior.
The text was updated successfully, but these errors were encountered:
Describe the bug
If the Group model is swapped, and then the
makemigrations
command is run, django attempts to create a 7th migration withindjango-automations
Expected behavior
Running
makemigrations
within an end-user's project should have no effect on django-automations. All migrations should be provided complete with the package.Additional context
I think I've got the issue sorted out, which involves manual creation of a new migration with:
migrations.swappable_dependency(settings.get_group_model_setting()),
AlterField
operation modifying theinteraction_group
field withto=settings.get_group_model_setting()
The last thing I'm still trying to pin down is the testing. After I get that resolved, I'll submit a PR to correct the behavior.
The text was updated successfully, but these errors were encountered: