.
This commit is contained in:
+6
-3
@@ -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("""<a href="#" onclick="return window.create_popup_window('/longs/series/{}', 'Series')" >Popup</a>""", record.pk)
|
||||
|
||||
Reference in New Issue
Block a user