mirror of https://github.com/snachodog/mybuddy.git
fix for /pull/665#discussion_r1250131684
This commit is contained in:
parent
1c6f332752
commit
b5ee54872a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue