Skip to content

Commit

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

0 comments on commit ce619cd

Please sign in to comment.