Remove the redundant attributes
DeleteInstance action inherits from tables.DeleteAction, the parent class has the 'name', 'classes' and 'icon' attributes, So remove the unused attributes. Change-Id: I5ef01ce68edcd7e78ac95747cf5fd8d8f8c96c81
This commit is contained in:
parent
3d5d31aa05
commit
e28dfcf7d3
@ -37,9 +37,6 @@ class Restore(tables.LinkAction):
|
||||
|
||||
|
||||
class DeleteBackup(tables.DeleteAction):
|
||||
name = "delete"
|
||||
classes = ("btn-danger",)
|
||||
icon = "remove"
|
||||
help_text = _("Delete backups is not recoverable.")
|
||||
|
||||
@staticmethod
|
||||
|
@ -26,9 +26,6 @@ class Filter(tables.FilterAction):
|
||||
|
||||
|
||||
class DeleteClient(tables.DeleteAction):
|
||||
name = "delete"
|
||||
classes = ("btn-danger",)
|
||||
icon = "remove"
|
||||
help_text = _("Delete Clients is not recoverable.")
|
||||
|
||||
@staticmethod
|
||||
|
@ -44,9 +44,6 @@ class AttachJobToSession(tables.LinkAction):
|
||||
|
||||
|
||||
class DeleteJob(tables.DeleteAction):
|
||||
name = "delete"
|
||||
classes = ("btn-danger",)
|
||||
icon = "remove"
|
||||
help_text = _("Delete jobs is not recoverable.")
|
||||
|
||||
@staticmethod
|
||||
@ -193,9 +190,6 @@ class JobsTable(tables.DataTable):
|
||||
|
||||
|
||||
class DeleteAction(tables.DeleteAction):
|
||||
name = "delete"
|
||||
classes = ("btn-danger",)
|
||||
icon = "remove"
|
||||
help_text = _("Delete actions is not recoverable.")
|
||||
|
||||
@staticmethod
|
||||
|
@ -41,9 +41,6 @@ class CreateJob(tables.LinkAction):
|
||||
|
||||
|
||||
class DeleteSession(tables.DeleteAction):
|
||||
name = "delete"
|
||||
classes = ("btn-danger",)
|
||||
icon = "remove"
|
||||
help_text = _("Delete sessions is not recoverable.")
|
||||
|
||||
@staticmethod
|
||||
@ -84,8 +81,6 @@ class DeleteMultipleActions(DeleteSession):
|
||||
|
||||
class DeleteJobFromSession(tables.DeleteAction):
|
||||
name = "delete_job_from_session"
|
||||
classes = ("btn-danger",)
|
||||
icon = "remove"
|
||||
help_text = _("Delete jobs is not recoverable.")
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user