diff --git a/core/migrations/0029_alter_pumping_options_remove_pumping_time_and_more.py b/core/migrations/0029_alter_pumping_options_remove_pumping_time_and_more.py index 9827a171..1e42a22c 100644 --- a/core/migrations/0029_alter_pumping_options_remove_pumping_time_and_more.py +++ b/core/migrations/0029_alter_pumping_options_remove_pumping_time_and_more.py @@ -6,7 +6,7 @@ import django.utils.timezone def set_pumping_start_end_values(apps, schema_editor): # The model must be imported to ensure its overridden `save` method is run. - from core.models import Pumping + Pumping = apps.get_model("core", "Pumping") for pumping in Pumping.objects.all(): pumping.start = pumping.time