Remove exams column from QuestionTable and add current user as author during question import

This commit is contained in:
Ross
2025-10-20 12:21:02 +01:00
parent 4ad101d65e
commit 52886d176b
2 changed files with 13 additions and 3 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ class QuestionTable(tables.Table):
#delete = tables.LinkColumn(
# "sbas:question_delete", text="Delete", args=[A("pk")], orderable=False
#)
exams = tables.ManyToManyColumn(verbose_name="Exams")
#exams = tables.ManyToManyColumn(verbose_name="Exams")
selection = tables.CheckBoxColumn(accessor="pk", orderable=False)
@@ -39,12 +39,12 @@ class QuestionTable(tables.Table):
"category",
"author",
)
sequence = ("view", "stem", "answers", "exams")
sequence = ("view", "stem", "answers")#, "exams")
def __init__(self, data=None, *args, **kwargs):
super().__init__(
data.prefetch_related(
"category", "exams", "author"
"category", "author"
),
*args,
**kwargs,