Merge "Add attributes "data-display" to clients table row"

This commit is contained in:
Jenkins 2017-09-20 15:55:58 +00:00 committed by Gerrit Code Review
commit 460c91aea4

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,)