Add 'frcr_appropriate' field to Question model for exam relevance

This commit is contained in:
Ross
2025-10-29 21:03:01 +00:00
parent f4cc3cc5b4
commit dca4ff249a
4 changed files with 41 additions and 0 deletions
@@ -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),
),
]
+1
View File
@@ -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.'),
),
]
+4
View File
@@ -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):