Merge "Add the missing name in confirm delete modal"

This commit is contained in:
Jenkins 2017-03-08 14:40:35 +00:00 committed by Gerrit Code Review
commit 4e94b1e1c0
2 changed files with 6 additions and 0 deletions

View File

@ -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")

View File

@ -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")