Merge "Remove not required parentheses for tables.Column(link=..)"
This commit is contained in:
commit
1655989c5a
@ -20,7 +20,7 @@ from horizon.templatetags import sizeformat
|
||||
|
||||
class AdminHypervisorsTable(tables.DataTable):
|
||||
hostname = tables.Column("hypervisor_hostname",
|
||||
link=("horizon:admin:hypervisors:detail"),
|
||||
link="horizon:admin:hypervisors:detail",
|
||||
attrs={'data-type': 'naturalSort'},
|
||||
verbose_name=_("Hostname"))
|
||||
|
||||
@ -66,7 +66,7 @@ class AdminHypervisorsTable(tables.DataTable):
|
||||
|
||||
class AdminHypervisorInstancesTable(tables.DataTable):
|
||||
name = tables.Column("name",
|
||||
link=("horizon:admin:instances:detail"),
|
||||
link="horizon:admin:instances:detail",
|
||||
verbose_name=_("Instance Name"))
|
||||
|
||||
instance_id = tables.Column("uuid",
|
||||
|
@ -125,7 +125,7 @@ class AdminInstancesTable(tables.DataTable):
|
||||
verbose_name=_("Host"),
|
||||
classes=('nowrap-col',))
|
||||
name = tables.Column("name",
|
||||
link=("horizon:admin:instances:detail"),
|
||||
link="horizon:admin:instances:detail",
|
||||
verbose_name=_("Name"))
|
||||
image_name = tables.Column("image_name",
|
||||
verbose_name=_("Image Name"))
|
||||
|
@ -217,7 +217,7 @@ class UsersTable(tables.DataTable):
|
||||
("false", False)
|
||||
)
|
||||
name = tables.Column('name',
|
||||
link=("horizon:identity:users:detail"),
|
||||
link="horizon:identity:users:detail",
|
||||
verbose_name=_('User Name'),
|
||||
form_field=forms.CharField(),
|
||||
update_action=UpdateCell)
|
||||
|
@ -133,7 +133,7 @@ class Instance(object):
|
||||
|
||||
class InstancesTable(tables.DataTable):
|
||||
name = tables.Column("name",
|
||||
link=("horizon:project:instances:detail"),
|
||||
link="horizon:project:instances:detail",
|
||||
verbose_name=_("Name"))
|
||||
|
||||
internal_ip = tables.Column("internal_ip",
|
||||
|
@ -77,7 +77,7 @@ class JobBinariesTable(tables.DataTable):
|
||||
name = tables.Column(
|
||||
"name",
|
||||
verbose_name=_("Name"),
|
||||
link=("horizon:project:data_processing.job_binaries:details"))
|
||||
link="horizon:project:data_processing.job_binaries:details")
|
||||
type = tables.Column("url",
|
||||
verbose_name=_("Url"))
|
||||
description = tables.Column("description",
|
||||
|
@ -102,7 +102,7 @@ class ChoosePlugin(tables.LinkAction):
|
||||
class JobsTable(tables.DataTable):
|
||||
name = tables.Column("name",
|
||||
verbose_name=_("Name"),
|
||||
link=("horizon:project:data_processing.jobs:details"))
|
||||
link="horizon:project:data_processing.jobs:details")
|
||||
description = tables.Column("description",
|
||||
verbose_name=_("Description"))
|
||||
|
||||
|
@ -81,7 +81,7 @@ class NodegroupTemplatesTable(tables.DataTable):
|
||||
name = tables.Column(
|
||||
"name",
|
||||
verbose_name=_("Name"),
|
||||
link=("horizon:project:data_processing.nodegroup_templates:details"))
|
||||
link="horizon:project:data_processing.nodegroup_templates:details")
|
||||
plugin_name = tables.Column("plugin_name",
|
||||
verbose_name=_("Plugin"))
|
||||
hadoop_version = tables.Column("hadoop_version",
|
||||
|
@ -283,7 +283,7 @@ class InstancesTable(tables.DataTable):
|
||||
u"Restart Required")),
|
||||
)
|
||||
name = tables.Column("name",
|
||||
link=("horizon:project:databases:detail"),
|
||||
link="horizon:project:databases:detail",
|
||||
verbose_name=_("Instance Name"))
|
||||
datastore = tables.Column(get_datastore,
|
||||
verbose_name=_("Datastore"))
|
||||
@ -349,7 +349,7 @@ def is_incremental(obj):
|
||||
|
||||
class InstanceBackupsTable(tables.DataTable):
|
||||
name = tables.Column("name",
|
||||
link=("horizon:project:database_backups:detail"),
|
||||
link="horizon:project:database_backups:detail",
|
||||
verbose_name=_("Name"))
|
||||
created = tables.Column("created", verbose_name=_("Created"),
|
||||
filters=[filters.parse_isotime])
|
||||
|
@ -238,7 +238,7 @@ class ImagesTable(tables.DataTable):
|
||||
("deleted", pgettext_lazy("Current status of an Image", u"Deleted")),
|
||||
)
|
||||
name = tables.Column(get_image_name,
|
||||
link=("horizon:project:images:images:detail"),
|
||||
link="horizon:project:images:images:detail",
|
||||
verbose_name=_("Image Name"))
|
||||
image_type = tables.Column(get_image_type,
|
||||
verbose_name=_("Type"),
|
||||
|
@ -981,7 +981,7 @@ class InstancesTable(tables.DataTable):
|
||||
("shelved_offloaded", True),
|
||||
)
|
||||
name = tables.Column("name",
|
||||
link=("horizon:project:instances:detail"),
|
||||
link="horizon:project:instances:detail",
|
||||
verbose_name=_("Instance Name"))
|
||||
image_name = tables.Column("image_name",
|
||||
verbose_name=_("Image Name"))
|
||||
|
Loading…
Reference in New Issue
Block a user