fix: clarify installation platform selection
Group device, virtual machine, and cluster as the required platform destination and validate that exactly one is selected with an actionable localized error.
This commit is contained in:
1 parent
adfc2ae72c
commit
71a5db0ece
8 files changed
+71
-6
No files matched your search
@@ -146,7 +146,9 @@ class SoftwareProductInstallation(NetBoxModel):
|
||||
| models.Q(device__isnull=True, virtualmachine__isnull=False, cluster__isnull=True)
|
||||
| models.Q(device__isnull=True, virtualmachine__isnull=True, cluster__isnull=False)
|
||||
),
|
||||
violation_error_message=_("Installation requires exactly one platform destination."),
|
||||
violation_error_message=_(
|
||||
"Select exactly one platform destination: device, virtual machine, or cluster."
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user