.
This commit is contained in:
+2
-3
@@ -41,8 +41,7 @@ class QuestionTable(tables.Table):
|
||||
class Meta:
|
||||
model = Question
|
||||
template_name = "django_tables2/bootstrap4.html"
|
||||
fields = ("normal", "abnormality", "region", "examination",
|
||||
"laterality",
|
||||
fields = ("normal", "examination",
|
||||
#"site",
|
||||
"created_date", "open_access", "author")
|
||||
sequence = ("view", "images", "exams")
|
||||
@@ -51,7 +50,7 @@ class QuestionTable(tables.Table):
|
||||
def __init__(self, data=None, *args, **kwargs):
|
||||
super().__init__(
|
||||
data.prefetch_related(
|
||||
"abnormality", "region", "examination", "images", "exams", "author"
|
||||
"examination", "images", "exams", "author"
|
||||
),
|
||||
*args,
|
||||
**kwargs,
|
||||
|
||||
Reference in New Issue
Block a user