add new type of self-learning
This commit is contained in:
18
tutorial/migrations/0007_alter_exercise_type.py
Normal file
18
tutorial/migrations/0007_alter_exercise_type.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 6.0.4 on 2026-06-30 01:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('tutorial', '0006_migrate_mcq_answers'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='exercise',
|
||||
name='type',
|
||||
field=models.CharField(choices=[('mcq', '选择题'), ('sort', '代码排序'), ('fill', '代码填空'), ('match', '连线匹配'), ('predict', '输出预测'), ('debug', '代码找错'), ('group', '归类分组')], max_length=16),
|
||||
),
|
||||
]
|
||||
@@ -12,6 +12,10 @@ class ExerciseType(models.TextChoices):
|
||||
MCQ = "mcq", "选择题"
|
||||
SORT = "sort", "代码排序"
|
||||
FILL = "fill", "代码填空"
|
||||
MATCH = "match", "连线匹配"
|
||||
PREDICT = "predict", "输出预测"
|
||||
DEBUG = "debug", "代码找错"
|
||||
GROUP = "group", "归类分组"
|
||||
|
||||
|
||||
class Tutorial(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user