Merge "Add the missing name in confirm delete modal"
This commit is contained in:
commit
4e94b1e1c0
@ -171,6 +171,9 @@ class JobsTable(tables.DataTable):
|
|||||||
def get_object_id(self, row):
|
def get_object_id(self, row):
|
||||||
return row.id
|
return row.id
|
||||||
|
|
||||||
|
def get_object_display(self, job):
|
||||||
|
return job.description
|
||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
name = "jobs"
|
name = "jobs"
|
||||||
verbose_name = _("Jobs")
|
verbose_name = _("Jobs")
|
||||||
|
@ -146,6 +146,9 @@ class SessionsTable(tables.DataTable):
|
|||||||
status = tables.Column('status',
|
status = tables.Column('status',
|
||||||
verbose_name=_("Status"))
|
verbose_name=_("Status"))
|
||||||
|
|
||||||
|
def get_object_display(self, session):
|
||||||
|
return session.description
|
||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
name = "sessions"
|
name = "sessions"
|
||||||
verbose_name = _("Sessions")
|
verbose_name = _("Sessions")
|
||||||
|
Loading…
Reference in New Issue
Block a user