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.
This commit is contained in:
Martin Hauser 2025-08-25 13:42:53 +02:00
parent 5ac3e79e7b
commit 0713dbdfba
No known key found for this signature in database

View File

@ -69,11 +69,14 @@ class PowerPortBulkCreateForm(
class PowerOutletBulkCreateForm(
form_from_model(PowerOutlet, ['type', 'color', 'feed_leg', 'mark_connected']),
form_from_model(PowerOutlet, ['type', 'status', 'color', 'feed_leg', 'mark_connected']),
DeviceBulkAddComponentForm
):
model = PowerOutlet
field_order = ('name', 'label', 'type', 'feed_leg', 'description', 'tags')
field_order = (
'name', 'label', 'type', 'status', 'color', 'feed_leg', 'mark_connected',
'description', 'tags',
)
class InterfaceBulkCreateForm(