From 3e6a99fc220de9ce3095fc0824b59286c6896c97 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 21 Mar 2017 17:33:40 -0400 Subject: [PATCH] Allow editing of platform RPC client --- netbox/dcim/forms.py | 2 +- netbox/dcim/tables.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index a2f58f1e3..c8e88f16b 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -496,7 +496,7 @@ class PlatformForm(BootstrapMixin, forms.ModelForm): class Meta: model = Platform - fields = ['name', 'slug'] + fields = ['name', 'slug', 'rpc_client'] # diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index 42c6a39bf..afe527ab7 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -347,12 +347,13 @@ class PlatformTable(BaseTable): name = tables.LinkColumn(verbose_name='Name') device_count = tables.Column(verbose_name='Devices') slug = tables.Column(verbose_name='Slug') + rpc_client = tables.Column(accessor='get_rpc_client_display', orderable=False, verbose_name='RPC Client') actions = tables.TemplateColumn(template_code=PLATFORM_ACTIONS, attrs={'td': {'class': 'text-right'}}, verbose_name='') class Meta(BaseTable.Meta): model = Platform - fields = ('pk', 'name', 'device_count', 'slug', 'actions') + fields = ('pk', 'name', 'device_count', 'slug', 'rpc_client', 'actions') #