Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Jul 31, 2024
1 parent ce619cd commit ec079b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfl_common/common/migrations/0053_clean_class_data.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit ec079b9

Please sign in to comment.