diff --git a/disaster_recovery/jobs/tables.py b/disaster_recovery/jobs/tables.py index ac6070f..1cb09f4 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")