Skip to content

Commit b334931

Browse files
pheusjeremystretch
authored andcommitted
fix(dcim): Add status field to PowerOutlet bulk create form
Includes the `status` field in the PowerOutlet bulk create form to allow configuration during bulk creation.
1 parent 704f050 commit b334931

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

netbox/dcim/forms/bulk_create.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,14 @@ class PowerPortBulkCreateForm(
6969

7070

7171
class PowerOutletBulkCreateForm(
72-
form_from_model(PowerOutlet, ['type', 'color', 'feed_leg', 'mark_connected']),
72+
form_from_model(PowerOutlet, ['type', 'status', 'color', 'feed_leg', 'mark_connected']),
7373
DeviceBulkAddComponentForm
7474
):
7575
model = PowerOutlet
76-
field_order = ('name', 'label', 'type', 'feed_leg', 'description', 'tags')
76+
field_order = (
77+
'name', 'label', 'type', 'status', 'color', 'feed_leg', 'mark_connected',
78+
'description', 'tags',
79+
)
7780

7881

7982
class InterfaceBulkCreateForm(

0 commit comments

Comments
 (0)