.
This commit is contained in:
@@ -55,6 +55,15 @@ class AnatomyQuestionTable(tables.Table):
|
||||
"author",
|
||||
)
|
||||
sequence = ("view", "image", "exams")
|
||||
|
||||
def __init__(self, data=None, *args, **kwargs):
|
||||
super().__init__(
|
||||
data.prefetch_related(
|
||||
"answers", "question_type", "body_part", "modality", "region", "examination", "exams", "author"
|
||||
),
|
||||
*args,
|
||||
**kwargs,
|
||||
)
|
||||
class AnatomyUserAnswerTable(tables.Table):
|
||||
select = tables.CheckBoxColumn(accessor=("pk"))
|
||||
delete = tables.LinkColumn(
|
||||
|
||||
Reference in New Issue
Block a user