-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add LearningAssistantCourseEnabled model to store course overrides
This commit adds a LearningAssistantCourseEnabled model to store overrides for whether the Learning Assistant feature is enabled. Although whether the feature is enabled will first be controlled by a CourseWaffleFlag, eventually, this model will allow course team members to selectively disable or re-enable the feature themselves.
- Loading branch information
1 parent
1ed55c7
commit ddc2e5e
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
learning_assistant/migrations/0005_learningassistantcourseenabled.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,29 @@ | ||
# Generated by Django 3.2.23 on 2024-01-04 15:02 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
import model_utils.fields | ||
import opaque_keys.edx.django.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('learning_assistant', '0004_remove_courseprompt_prompt'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='LearningAssistantCourseEnabled', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), | ||
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), | ||
('course_id', opaque_keys.edx.django.models.CourseKeyField(db_index=True, max_length=255, unique=True)), | ||
('enabled', models.BooleanField()), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
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