Set model as attribute on bulk edit forms

This commit is contained in:
jeremystretch
2022-02-01 11:00:18 -05:00
parent 4347f624d8
commit 3621b1a0d0
10 changed files with 77 additions and 19 deletions

View File

@@ -31,6 +31,7 @@ class TenantGroupBulkEditForm(NetBoxModelBulkEditForm):
required=False
)
model = TenantGroup
nullable_fields = ('parent', 'description')
@@ -44,6 +45,7 @@ class TenantBulkEditForm(NetBoxModelBulkEditForm):
required=False
)
model = Tenant
nullable_fields = ('group',)
@@ -65,6 +67,7 @@ class ContactGroupBulkEditForm(NetBoxModelBulkEditForm):
required=False
)
model = ContactGroup
nullable_fields = ('parent', 'description')
@@ -78,6 +81,7 @@ class ContactRoleBulkEditForm(NetBoxModelBulkEditForm):
required=False
)
model = ContactRole
nullable_fields = ('description',)
@@ -106,4 +110,5 @@ class ContactBulkEditForm(NetBoxModelBulkEditForm):
required=False
)
model = Contact
nullable_fields = ('group', 'title', 'phone', 'email', 'address', 'comments')