.
This commit is contained in:
@@ -40,6 +40,8 @@ class CidUserTable(tables.Table):
|
|||||||
|
|
||||||
selection = tables.CheckBoxColumn(accessor="pk", orderable=False)
|
selection = tables.CheckBoxColumn(accessor="pk", orderable=False)
|
||||||
|
|
||||||
|
emails = tables.Column(empty_values=(), orderable=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = CidUser
|
model = CidUser
|
||||||
template_name = "django_tables2/bootstrap4.html"
|
template_name = "django_tables2/bootstrap4.html"
|
||||||
@@ -53,6 +55,9 @@ class CidUserTable(tables.Table):
|
|||||||
)
|
)
|
||||||
sequence = ("cid",)
|
sequence = ("cid",)
|
||||||
|
|
||||||
|
def render_emails(self, value, record):
|
||||||
|
print(self)
|
||||||
|
return format_html("""{}\n{}""", record.email, record.supervisor_email)
|
||||||
|
|
||||||
# def render_cid(self, value, record):
|
# def render_cid(self, value, record):
|
||||||
# return format_html("""<a href="#" onclick="return window.create_popup_window('/longs/series/{}', 'Series')" >Popup</a>""", record.pk)
|
# 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