add series to table
This commit is contained in:
+2
-1
@@ -62,6 +62,7 @@ class CaseTable(tables.Table):
|
|||||||
#"history",
|
#"history",
|
||||||
#"condition",
|
#"condition",
|
||||||
"created_date",
|
"created_date",
|
||||||
|
"series",
|
||||||
"author",
|
"author",
|
||||||
)
|
)
|
||||||
sequence = ("view", )#, "series")
|
sequence = ("view", )#, "series")
|
||||||
@@ -70,7 +71,7 @@ class CaseTable(tables.Table):
|
|||||||
def __init__(self, data=None, *args, **kwargs):
|
def __init__(self, data=None, *args, **kwargs):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
data.prefetch_related(
|
data.prefetch_related(
|
||||||
"author",#"condition", "condition__synonym"
|
"author", "series",#"condition", "condition__synonym"
|
||||||
),
|
),
|
||||||
*args,
|
*args,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
|
|||||||
Reference in New Issue
Block a user