-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into remove_kurono
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "6.46.0" | ||
__version__ = "6.46.1" |