.
This commit is contained in:
@@ -62,6 +62,15 @@ class QuestionTable(tables.Table):
|
||||
)
|
||||
sequence = ("view", "stem", "answers", "exams")
|
||||
|
||||
def __init__(self, data=None, *args, **kwargs):
|
||||
super().__init__(
|
||||
data.prefetch_related(
|
||||
"category", "author", "exams"
|
||||
),
|
||||
*args,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
def render_stem(self, value):
|
||||
return mark_safe(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user