add new type of self-learning

This commit is contained in:
2026-06-29 19:37:59 -06:00
parent 180d75cb97
commit d1a1c05b9f
2 changed files with 22 additions and 0 deletions

View 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),
),
]

View File

@@ -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):