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