-
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.
- Loading branch information
Showing
67 changed files
with
1,043 additions
and
3,024 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,2 @@ | ||
include common/fixtures/*.json | ||
graft common/templates | ||
graft common/static |
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
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,12 +1,8 @@ | ||
from common.helpers.data_migration_loader import load_data_from_file | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("common", "0004_add_aimmocharacters"), | ||
("aimmo", "0020_add_info_to_worksheet"), | ||
] | ||
dependencies = [("common", "0004_add_aimmocharacters")] | ||
|
||
operations = [migrations.RunPython(migrations.RunPython.noop, reverse_code=migrations.RunPython.noop)] |
6 changes: 1 addition & 5 deletions
6
cfl_common/common/migrations/0007_add_pdf_names_to_first_two_worksheets.py
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,12 +1,8 @@ | ||
from common.helpers.data_migration_loader import load_data_from_file | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("common", "0006_update_aimmo_character_image_path"), | ||
("aimmo", "0021_add_pdf_names_to_worksheet"), | ||
] | ||
dependencies = [("common", "0006_update_aimmo_character_image_path")] | ||
|
||
operations = [migrations.RunPython(migrations.RunPython.noop, 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 |
---|---|---|
@@ -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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.2.25 on 2024-07-31 00:13 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0053_clean_class_data'), | ||
] | ||
|
||
operations = [ | ||
migrations.DeleteModel( | ||
name='AimmoCharacter', | ||
), | ||
migrations.RemoveField( | ||
model_name='userprofile', | ||
name='aimmo_badges', | ||
), | ||
] |
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
29 changes: 0 additions & 29 deletions
29
cfl_common/common/tests/test_migration_aimmo_characters.py
This file was deleted.
Oops, something went wrong.
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
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
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
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__ = "7.0.0" |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.