Fixes #12296: Fix 'mark connected' form field for bulk editing front & rear ports
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## v3.4.9 (FUTURE)
|
## v3.4.9 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#12296](https://github.com/netbox-community/netbox/issues/12296) - Fix "mark connected" form field for bulk editing front & rear ports
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## v3.4.8 (2023-04-12)
|
## v3.4.8 (2023-04-12)
|
||||||
|
@@ -1324,6 +1324,11 @@ class FrontPortBulkEditForm(
|
|||||||
form_from_model(FrontPort, ['label', 'type', 'color', 'mark_connected', 'description']),
|
form_from_model(FrontPort, ['label', 'type', 'color', 'mark_connected', 'description']),
|
||||||
ComponentBulkEditForm
|
ComponentBulkEditForm
|
||||||
):
|
):
|
||||||
|
mark_connected = forms.NullBooleanField(
|
||||||
|
required=False,
|
||||||
|
widget=BulkEditNullBooleanSelect
|
||||||
|
)
|
||||||
|
|
||||||
model = FrontPort
|
model = FrontPort
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
(None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
|
(None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
|
||||||
@@ -1335,6 +1340,11 @@ class RearPortBulkEditForm(
|
|||||||
form_from_model(RearPort, ['label', 'type', 'color', 'mark_connected', 'description']),
|
form_from_model(RearPort, ['label', 'type', 'color', 'mark_connected', 'description']),
|
||||||
ComponentBulkEditForm
|
ComponentBulkEditForm
|
||||||
):
|
):
|
||||||
|
mark_connected = forms.NullBooleanField(
|
||||||
|
required=False,
|
||||||
|
widget=BulkEditNullBooleanSelect
|
||||||
|
)
|
||||||
|
|
||||||
model = RearPort
|
model = RearPort
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
(None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
|
(None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
|
||||||
|
Reference in New Issue
Block a user