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:
Qian Min Chen 2018-07-19 17:48:08 +08:00
parent 3d5d31aa05
commit e28dfcf7d3
4 changed files with 0 additions and 17 deletions

View File

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

View File

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

View File

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

View File

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