Skip to content

Commit

Permalink
Fixes #17986: Correct label for disk size when bulk editing virtual m…
Browse files Browse the repository at this point in the history
…achines (#17992)

* Fixes #17986: Correct label for disk size when bulk editing virtual machines

* Correct label for VirtualDisk.size
  • Loading branch information
jeremystretch authored Nov 12, 2024
1 parent c34fea6 commit 9c532c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions netbox/virtualization/forms/bulk_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class VirtualMachineBulkEditForm(NetBoxModelBulkEditForm):
)
disk = forms.IntegerField(
required=False,
label=_('Disk (GB)')
label=_('Disk (MB)')
)
description = forms.CharField(
label=_('Description'),
Expand Down Expand Up @@ -331,7 +331,7 @@ class VirtualDiskBulkEditForm(NetBoxModelBulkEditForm):
)
size = forms.IntegerField(
required=False,
label=_('Size (GB)')
label=_('Size (MB)')
)
description = forms.CharField(
label=_('Description'),
Expand Down
2 changes: 1 addition & 1 deletion netbox/virtualization/forms/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class VirtualDiskFilterForm(NetBoxModelFilterSetForm):
label=_('Virtual machine')
)
size = forms.IntegerField(
label=_('Size (GB)'),
label=_('Size (MB)'),
required=False,
min_value=1
)
Expand Down

0 comments on commit 9c532c7

Please sign in to comment.