1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #9402: Fix custom field population when creating a virtual chassis

This commit is contained in:
jeremystretch
2022-05-31 13:26:25 -04:00
parent f1d0d8e57a
commit 201b9f635e
2 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,8 @@ class VirtualChassisCreateForm(NetBoxModelForm):
]
def clean(self):
super().clean()
if self.cleaned_data['members'] and self.cleaned_data['initial_position'] is None:
raise forms.ValidationError({
'initial_position': "A position must be specified for the first VC member."