-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
is_template property was not the right approach, a new asset type "ST…
…ARTER" was created
- Loading branch information
1 parent
65ac9ce
commit dca9376
Showing
4 changed files
with
63 additions
and
9 deletions.
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
53 changes: 53 additions & 0 deletions
53
...code/registry/migrations/0049_remove_asset_is_template_alter_asset_asset_type_and_more.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Generated by Django 5.1.1 on 2024-11-12 18:32 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("registry", "0048_asset_dependencies_asset_is_template_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="asset", | ||
name="is_template", | ||
), | ||
migrations.AlterField( | ||
model_name="asset", | ||
name="asset_type", | ||
field=models.CharField( | ||
choices=[ | ||
("PROJECT", "Project"), | ||
("STARTER", "Starter Template"), | ||
("EXERCISE", "Exercise"), | ||
("QUIZ", "Quiz"), | ||
("LESSON", "Lesson"), | ||
("VIDEO", "Video"), | ||
("ARTICLE", "Article"), | ||
], | ||
db_index=True, | ||
max_length=20, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="asseterrorlog", | ||
name="asset_type", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("PROJECT", "Project"), | ||
("STARTER", "Starter Template"), | ||
("EXERCISE", "Exercise"), | ||
("QUIZ", "Quiz"), | ||
("LESSON", "Lesson"), | ||
("VIDEO", "Video"), | ||
("ARTICLE", "Article"), | ||
], | ||
default=None, | ||
max_length=20, | ||
null=True, | ||
), | ||
), | ||
] |
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