Skip to content

Commit

Permalink
Merge branch 'master' into remove_kurono
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Aug 1, 2024
2 parents 0f19ac9 + ea43cd9 commit 38b8402
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions cfl_common/common/migrations/0053_clean_class_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from datetime import date

from django.apps.registry import Apps
from django.db import migrations, models

def clean_early_class_data(apps: Apps, *args):
Class = apps.get_model("common", "Class")

Class.objects.filter(
creation_time__date__lt = date(2021, 10, 15)
).update(creation_time = None)

class Migration(migrations.Migration):

dependencies = [
("common", "0052_add_cse_fields")
]

operations = [
migrations.RunPython(
code=clean_early_class_data,
reverse_code=migrations.RunPython.noop,
),
]
2 changes: 1 addition & 1 deletion portal/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "6.46.0"
__version__ = "6.46.1"

0 comments on commit 38b8402

Please sign in to comment.