From ec079b907bb461288730c6374d3545f63bd98306 Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Wed, 31 Jul 2024 12:12:36 +0000 Subject: [PATCH] fix import --- cfl_common/common/migrations/0053_clean_class_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfl_common/common/migrations/0053_clean_class_data.py b/cfl_common/common/migrations/0053_clean_class_data.py index c9553607b..9e447d5ba 100644 --- a/cfl_common/common/migrations/0053_clean_class_data.py +++ b/cfl_common/common/migrations/0053_clean_class_data.py @@ -1,13 +1,13 @@ from django.apps.registry import Apps from django.db import migrations, models -from datetime import datetime +from datetime import date def clean_early_class_data(apps: Apps, *args): Class = apps.get_model("common", "Class") Class.objects.filter( - creation_time__date__lt = datetime.date(2021, 10, 15) + creation_time__date__lt = date(2021, 10, 15) ).update(creation_time = None) class Migration(migrations.Migration):