Просмотр исходного кода

Corrected order of arguments on DeviceVCMembershipForm

Jeremy Stretch 8 лет назад
Родитель
Сommit
37dde72c8f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/dcim/forms.py

+ 1 - 1
netbox/dcim/forms.py

@@ -2315,7 +2315,7 @@ class DeviceVCMembershipForm(forms.ModelForm):
             'vc_priority': 'Priority',
             'vc_priority': 'Priority',
         }
         }
 
 
-    def __init__(self, *args, validate_vc_position=False, **kwargs):
+    def __init__(self, validate_vc_position=False, *args, **kwargs):
         super(DeviceVCMembershipForm, self).__init__(*args, **kwargs)
         super(DeviceVCMembershipForm, self).__init__(*args, **kwargs)
 
 
         # Require VC position (only required when the Device is a VirtualChassis member)
         # Require VC position (only required when the Device is a VirtualChassis member)