Add 'frcr_appropriate' field to Question model for exam relevance
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.7 on 2025-10-29 21:01
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('generic', '0026_questionreview'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='questionreview',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('AC', 'Accepted'), ('OD', 'Outdated'), ('ER', 'Error'), ('RJ', 'Rejected'), ('IP', 'In Progress')], default='AC', max_length=2),
|
||||
),
|
||||
]
|
||||
@@ -150,6 +150,7 @@ class QuestionForm(ModelForm):
|
||||
"presentation",
|
||||
"subspecialty",
|
||||
"open_access",
|
||||
"frcr_appropriate",
|
||||
]
|
||||
|
||||
widgets = {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.7 on 2025-10-29 21:01
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sbas', '0021_alter_question_open_access'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='question',
|
||||
name='frcr_appropriate',
|
||||
field=models.BooleanField(default=True, help_text='If set, this question is considered appropriate for FRCR exam practice.'),
|
||||
),
|
||||
]
|
||||
@@ -112,6 +112,10 @@ class Question(QuestionBase):
|
||||
default=True, help_text="If set, this question is available to all users for use in their exams."
|
||||
)
|
||||
|
||||
frcr_appropriate = models.BooleanField(
|
||||
default=True, help_text="If set, this question is considered appropriate for FRCR exam practice."
|
||||
)
|
||||
|
||||
#notes = GenericRelation(QuestionNote)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user