From 58409a84dee559d7f0e28135cb561b7c851bfd4e Mon Sep 17 00:00:00 2001 From: qiaomin Date: Tue, 7 Feb 2017 23:10:55 +0800 Subject: [PATCH] Add the missing name in confirm delete modal Change-Id: Ifc28241aa22d1e97a59a35bd2ff8eff150a0b25b Closes-Bug: #1658557 --- disaster_recovery/jobs/tables.py | 3 +++ disaster_recovery/sessions/tables.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/disaster_recovery/jobs/tables.py b/disaster_recovery/jobs/tables.py index 3bf14be..6f28374 100644 --- a/disaster_recovery/jobs/tables.py +++ b/disaster_recovery/jobs/tables.py @@ -171,6 +171,9 @@ class JobsTable(tables.DataTable): def get_object_id(self, row): return row.id + def get_object_display(self, job): + return job.description + class Meta(object): name = "jobs" verbose_name = _("Jobs") diff --git a/disaster_recovery/sessions/tables.py b/disaster_recovery/sessions/tables.py index 5fbf205..7efc105 100644 --- a/disaster_recovery/sessions/tables.py +++ b/disaster_recovery/sessions/tables.py @@ -146,6 +146,9 @@ class SessionsTable(tables.DataTable): status = tables.Column('status', verbose_name=_("Status")) + def get_object_display(self, session): + return session.description + class Meta(object): name = "sessions" verbose_name = _("Sessions")