mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 08:25:17 -06:00
i18n cleanup
This commit is contained in:
parent
adbc4b7e02
commit
73935be764
@ -128,6 +128,7 @@ class VirtualMachineImportForm(NetBoxModelImportForm):
|
||||
queryset=ConfigTemplate.objects.all(),
|
||||
to_field_name='name',
|
||||
required=False,
|
||||
label=_('Config template'),
|
||||
help_text=_('Config template')
|
||||
)
|
||||
|
||||
|
@ -208,7 +208,8 @@ class VirtualMachineForm(TenancyForm, NetBoxModelForm):
|
||||
)
|
||||
config_template = DynamicModelChoiceField(
|
||||
queryset=ConfigTemplate.objects.all(),
|
||||
required=False
|
||||
required=False,
|
||||
label=_('Config template')
|
||||
)
|
||||
comments = CommentField()
|
||||
|
||||
@ -225,7 +226,8 @@ class VirtualMachineForm(TenancyForm, NetBoxModelForm):
|
||||
model = VirtualMachine
|
||||
fields = [
|
||||
'name', 'status', 'site', 'cluster', 'device', 'role', 'tenant_group', 'tenant', 'platform', 'primary_ip4',
|
||||
'primary_ip6', 'vcpus', 'memory', 'disk', 'description', 'comments', 'tags', 'local_context_data', 'config_template',
|
||||
'primary_ip6', 'vcpus', 'memory', 'disk', 'description', 'comments', 'tags', 'local_context_data',
|
||||
'config_template',
|
||||
]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -85,6 +85,7 @@ class VirtualMachineTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable)
|
||||
verbose_name=_('Interfaces')
|
||||
)
|
||||
config_template = tables.Column(
|
||||
verbose_name=_('Config Template'),
|
||||
linkify=True
|
||||
)
|
||||
|
||||
@ -93,7 +94,7 @@ class VirtualMachineTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable)
|
||||
fields = (
|
||||
'pk', 'id', 'name', 'status', 'site', 'cluster', 'device', 'role', 'tenant', 'tenant_group', 'platform',
|
||||
'vcpus', 'memory', 'disk', 'primary_ip4', 'primary_ip6', 'primary_ip', 'description', 'comments',
|
||||
'contacts', 'config_template', 'tags', 'created', 'last_updated',
|
||||
'config_template', 'contacts', 'tags', 'created', 'last_updated',
|
||||
)
|
||||
default_columns = (
|
||||
'pk', 'name', 'status', 'site', 'cluster', 'role', 'tenant', 'vcpus', 'memory', 'disk', 'primary_ip',
|
||||
|
Loading…
Reference in New Issue
Block a user