.
This commit is contained in:
@@ -54,6 +54,15 @@ class CidUserTable(tables.Table):
|
|||||||
)
|
)
|
||||||
sequence = ("cid", "passcode", "active", "internal_candidate", "emails")
|
sequence = ("cid", "passcode", "active", "internal_candidate", "emails")
|
||||||
|
|
||||||
|
def __init__(self, data=None, *args, **kwargs):
|
||||||
|
super().__init__(
|
||||||
|
data.prefetch_related(
|
||||||
|
"group"
|
||||||
|
),
|
||||||
|
*args,
|
||||||
|
**kwargs,
|
||||||
|
)
|
||||||
|
|
||||||
def render_emails(self, value, record):
|
def render_emails(self, value, record):
|
||||||
print(self)
|
print(self)
|
||||||
return format_html("""{}\n[{}]""", record.email, record.supervisor_email)
|
return format_html("""{}\n[{}]""", record.email, record.supervisor_email)
|
||||||
|
|||||||
Reference in New Issue
Block a user