From dca4ff249ae3547ee435eb95a6dc9134ec4fa7a8 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 29 Oct 2025 21:03:01 +0000 Subject: [PATCH] Add 'frcr_appropriate' field to Question model for exam relevance --- .../0027_alter_questionreview_status.py | 18 ++++++++++++++++++ sbas/forms.py | 1 + .../0022_question_frcr_appropriate.py | 18 ++++++++++++++++++ sbas/models.py | 4 ++++ 4 files changed, 41 insertions(+) create mode 100644 generic/migrations/0027_alter_questionreview_status.py create mode 100644 sbas/migrations/0022_question_frcr_appropriate.py diff --git a/generic/migrations/0027_alter_questionreview_status.py b/generic/migrations/0027_alter_questionreview_status.py new file mode 100644 index 00000000..9ce76c1b --- /dev/null +++ b/generic/migrations/0027_alter_questionreview_status.py @@ -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), + ), + ] diff --git a/sbas/forms.py b/sbas/forms.py index 4dccfcc8..a5dfdb3c 100755 --- a/sbas/forms.py +++ b/sbas/forms.py @@ -150,6 +150,7 @@ class QuestionForm(ModelForm): "presentation", "subspecialty", "open_access", + "frcr_appropriate", ] widgets = { diff --git a/sbas/migrations/0022_question_frcr_appropriate.py b/sbas/migrations/0022_question_frcr_appropriate.py new file mode 100644 index 00000000..da127a6f --- /dev/null +++ b/sbas/migrations/0022_question_frcr_appropriate.py @@ -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.'), + ), + ] diff --git a/sbas/models.py b/sbas/models.py index fd2ec390..2e1703c8 100644 --- a/sbas/models.py +++ b/sbas/models.py @@ -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):