1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Enable the use of fieldsets on bulk edit forms

This commit is contained in:
jeremystretch
2022-02-04 09:59:53 -05:00
parent ac1c0b0715
commit 60e87cd496
9 changed files with 273 additions and 13 deletions

View File

@ -38,6 +38,9 @@ class TenantBulkEditForm(NetBoxModelBulkEditForm):
)
model = Tenant
fieldsets = (
(None, ('group',)),
)
nullable_fields = ('group',)
@ -56,6 +59,9 @@ class ContactGroupBulkEditForm(NetBoxModelBulkEditForm):
)
model = ContactGroup
fieldsets = (
(None, ('parent', 'description')),
)
nullable_fields = ('parent', 'description')
@ -66,6 +72,9 @@ class ContactRoleBulkEditForm(NetBoxModelBulkEditForm):
)
model = ContactRole
fieldsets = (
(None, ('description',)),
)
nullable_fields = ('description',)
@ -91,4 +100,7 @@ class ContactBulkEditForm(NetBoxModelBulkEditForm):
)
model = Contact
fieldsets = (
(None, ('group', 'title', 'phone', 'email', 'address')),
)
nullable_fields = ('group', 'title', 'phone', 'email', 'address', 'comments')