Add attributes "data-display" to clients table row

In clients table, row attribute "data-display" is missing, so
when we cann't see client name in deleting confirm dialog.
Now I fix it.

Change-Id: Ie0b6b7dcf419b1c4ab4b83715410b7bb678f39fe
Closes-bug: #1703501
This commit is contained in:
zhangdebo1987 2017-07-11 11:50:15 +08:00
parent e779891638
commit 5296db8b0c
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ class ClientsTable(tables.DataTable):
link=get_link)
name = tables.Column('hostname', verbose_name=_("Hostname"))
class Meta:
def get_object_display_key(self, datum):
return "hostname"
class Meta(object):
name = "clients"
verbose_name = _("Clients")
row_actions = (DeleteClient,)