-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid CourseUpdate.status model field definition
The model field definition used the UpdateStatus enum incorrectly. The status choices were strings that started with "UpdateStatus.", e.g., "UpdateStatus.PENDING". The prefix "UpdateStatus" is not supposed to be saved to the database. It even breaches the max_length constraint of the CharField, but since SQLite ignores max_length, this does not cause issues when testing on SQLite.
- Loading branch information
1 parent
44ab3a0
commit 2566888
Showing
3 changed files
with
20 additions
and
2 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
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,18 @@ | ||
# Generated by Django 2.2.26 on 2022-01-27 17:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('builder', '0013_course_webhook_secret'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='courseupdate', | ||
name='status', | ||
field=models.CharField(choices=[('PENDING', 'PENDING'), ('RUNNING', 'RUNNING'), ('SUCCESS', 'SUCCESS'), ('FAILED', 'FAILED'), ('SKIPPED', 'SKIPPED')], default='PENDING', max_length=10), | ||
), | ||
] |
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