mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Fixes #19464: Fix bulk editing of inventory items from device view
This commit is contained in:
parent
b57ceca2fd
commit
86056928b5
@ -1779,6 +1779,13 @@ class InventoryItemBulkEditForm(
|
|||||||
)
|
)
|
||||||
nullable_fields = ('label', 'role', 'manufacturer', 'part_id', 'description')
|
nullable_fields = ('label', 'role', 'manufacturer', 'part_id', 'description')
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
# Remove parent device passed as context to avoid conflicts with the actual device field
|
||||||
|
# on this form (see bug #19464)
|
||||||
|
self.initial.pop('device', None)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Device component roles
|
# Device component roles
|
||||||
|
Loading…
Reference in New Issue
Block a user