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

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

@@ -47,6 +47,7 @@ class ProviderBulkEditForm(NetBoxModelBulkEditForm):
label='Comments'
)
model = Provider
nullable_fields = (
'asn', 'account', 'portal_url', 'noc_contact', 'admin_contact', 'comments',
)
@@ -74,6 +75,7 @@ class ProviderNetworkBulkEditForm(NetBoxModelBulkEditForm):
label='Comments'
)
model = ProviderNetwork
nullable_fields = (
'service_id', 'description', 'comments',
)
@@ -89,6 +91,7 @@ class CircuitTypeBulkEditForm(NetBoxModelBulkEditForm):
required=False
)
model = CircuitType
nullable_fields = ('description',)
@@ -128,6 +131,7 @@ class CircuitBulkEditForm(NetBoxModelBulkEditForm):
label='Comments'
)
model = Circuit
nullable_fields = (
'tenant', 'commit_rate', 'description', 'comments',
)