This commit is contained in:
Ross
2022-05-25 16:50:18 +01:00
parent 41a09ea30d
commit 5701c8d613
30 changed files with 402 additions and 226 deletions
+9
View File
@@ -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(