From 96c890cf84d4f28f8cb58fbf15c44a2c97af47e6 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 6 Jan 2022 11:22:33 +0000 Subject: [PATCH] . --- generic/tables.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/generic/tables.py b/generic/tables.py index cb95baff..d7002228 100644 --- a/generic/tables.py +++ b/generic/tables.py @@ -26,7 +26,9 @@ class CidUserTable(tables.Table): cid = tables.LinkColumn( "cid_scores", args=[A("cid"), A("passcode")], orderable=True ) - edit = tables.LinkColumn("generic:update_cid", text="Edit", args=[A("pk")], orderable=True) + edit = tables.LinkColumn( + "generic:update_cid", text="Edit", args=[A("pk")], orderable=True + ) # image = ImageColumn("image", orderable=False) # clone = tables.LinkColumn('anatomy:anatomy_question_clone', # text='Clone', @@ -51,13 +53,14 @@ class CidUserTable(tables.Table): "active", "group", "internal_candidate", - "email", + # "email", ) - sequence = ("cid","passcode", "active", "internal_candidate", "emails") + sequence = ("cid", "passcode", "active", "internal_candidate", "emails") def render_emails(self, value, record): print(self) return format_html("""{}\n[{}]""", record.email, record.supervisor_email) + # def render_cid(self, value, record): # return format_html("""Popup""", record.pk)