From a4025c842eaf47992d35d661d0cc30ca8d2722b8 Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 18 Oct 2022 09:09:11 -0700 Subject: [PATCH] 10643 add fieldset to device role for improved add/edit form display --- netbox/dcim/forms/models.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/netbox/dcim/forms/models.py b/netbox/dcim/forms/models.py index 1f1c869a5..f4e5ffbf9 100644 --- a/netbox/dcim/forms/models.py +++ b/netbox/dcim/forms/models.py @@ -406,6 +406,12 @@ class ModuleTypeForm(NetBoxModelForm): class DeviceRoleForm(NetBoxModelForm): slug = SlugField() + fieldsets = ( + ('Device Role', ( + 'name', 'slug', 'color', 'vm_role', 'description', 'tags', + )), + ) + class Meta: model = DeviceRole fields = [ @@ -422,6 +428,13 @@ class PlatformForm(NetBoxModelForm): max_length=64 ) + fieldsets = ( + ('Platform', ( + 'name', 'slug', 'manufacturer', 'napalm_driver', 'napalm_args', 'description', 'tags', + + )), + ) + class Meta: model = Platform fields = [