From 5296db8b0c92334c7dafd86d2c758fe4e6830c2d Mon Sep 17 00:00:00 2001 From: zhangdebo1987 Date: Tue, 11 Jul 2017 11:50:15 +0800 Subject: [PATCH] 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 --- disaster_recovery/clients/tables.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/disaster_recovery/clients/tables.py b/disaster_recovery/clients/tables.py index 407b0c7..faccd13 100644 --- a/disaster_recovery/clients/tables.py +++ b/disaster_recovery/clients/tables.py @@ -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,)