Fix misleading labeling for filters
Resolved bug: 1544083 Change-Id: I0b2383159b1616d80a5d7641618a65a73dc73654
This commit is contained in:
parent
4c5ee4ca57
commit
37f3b7caef
|
@ -58,9 +58,9 @@ class DeleteMultipleActions(DeleteAction):
|
|||
name = "delete_multiple_actions"
|
||||
|
||||
|
||||
class BackupFilter(tables.FilterAction):
|
||||
class Filter(tables.FilterAction):
|
||||
filter_type = "server"
|
||||
filter_choices = (("contains", "Contains text", True),)
|
||||
filter_choices = (("exact", "Exact text", True),)
|
||||
|
||||
|
||||
class CreateAction(tables.LinkAction):
|
||||
|
@ -102,5 +102,5 @@ class ActionsTable(tables.DataTable):
|
|||
name = "actions_table"
|
||||
verbose_name = _("Actions")
|
||||
row_actions = (EditAction, DeleteAction,)
|
||||
table_actions = (BackupFilter, CreateAction, DeleteMultipleActions)
|
||||
table_actions = (Filter, CreateAction, DeleteMultipleActions)
|
||||
multi_select = True
|
||||
|
|
|
@ -38,9 +38,9 @@ class Restore(tables.LinkAction):
|
|||
kwargs={'backup_id': datum.id})
|
||||
|
||||
|
||||
class BackupFilter(tables.FilterAction):
|
||||
class Filter(tables.FilterAction):
|
||||
filter_type = "server"
|
||||
filter_choices = (("contains", "Contains text", True),)
|
||||
filter_choices = (("exact", "Exact text", True),)
|
||||
|
||||
|
||||
def icons(backup):
|
||||
|
@ -109,5 +109,5 @@ class BackupsTable(tables.DataTable):
|
|||
name = "backups"
|
||||
verbose_name = _("Backup History")
|
||||
row_actions = (Restore,)
|
||||
table_actions = (BackupFilter,)
|
||||
table_actions = (Filter,)
|
||||
multi_select = False
|
||||
|
|
|
@ -26,7 +26,7 @@ LOG = logging.getLogger(__name__)
|
|||
|
||||
class Filter(tables.FilterAction):
|
||||
filter_type = "server"
|
||||
filter_choices = (("contains", "Contains text", True),)
|
||||
filter_choices = (("exact", "Exact text", True),)
|
||||
|
||||
|
||||
class DeleteClient(tables.DeleteAction):
|
||||
|
|
Loading…
Reference in New Issue