mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
8356 bulk add fixes
This commit is contained in:
parent
2b92660c9e
commit
20b0d6f976
@ -37,9 +37,4 @@ class VirtualDiskBulkCreateForm(
|
||||
form_from_model(VirtualDisk, ['size', 'tags']),
|
||||
VirtualMachineBulkAddComponentForm
|
||||
):
|
||||
size = forms.IntegerField(
|
||||
required=False,
|
||||
label=_('Size (GB)')
|
||||
)
|
||||
|
||||
replication_fields = ('name', 'size')
|
||||
replication_fields = ('name',)
|
||||
|
@ -414,3 +414,7 @@ class VirtualDisk(NetBoxModel, TrackingModelMixin):
|
||||
objectchange = super().to_objectchange(action)
|
||||
objectchange.related_object = self.virtual_machine
|
||||
return objectchange
|
||||
|
||||
@property
|
||||
def parent_object(self):
|
||||
return self.virtual_machine
|
||||
|
Loading…
Reference in New Issue
Block a user