Add open_access field to Question model and update question detail template

This commit is contained in:
Ross
2025-10-20 20:56:37 +01:00
parent ac9faeccbd
commit bdb7aff5d1
7 changed files with 71 additions and 41 deletions
+4
View File
@@ -107,6 +107,10 @@ class Question(QuestionBase):
presentation = models.ManyToManyField(Presentation, blank=True, related_name="sbas_questions")
subspecialty = models.ManyToManyField(Subspecialty, blank=True, related_name="sbas_questions")
open_access = models.BooleanField(
default=True, help_text="If set, this question is available to all users for use in their exams."
)
#notes = GenericRelation(QuestionNote)
def __str__(self):