fix for /pull/665#discussion_r1250131684

This commit is contained in:
John Merlie 2023-07-08 17:12:18 -04:00 committed by Christopher Charbonneau Wells
parent 1c6f332752
commit b5ee54872a
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import django.utils.timezone
def set_pumping_start_end_values(apps, schema_editor): def set_pumping_start_end_values(apps, schema_editor):
# The model must be imported to ensure its overridden `save` method is run. # 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(): for pumping in Pumping.objects.all():
pumping.start = pumping.time pumping.start = pumping.time