Răsfoiți Sursa

17517 fix cable creation when switching device type

Arthur Hanson 1 an în urmă
părinte
comite
f4d4483050
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      netbox/dcim/views.py

+ 2 - 2
netbox/dcim/views.py

@@ -3253,10 +3253,10 @@ class CableEditView(generic.ObjectEditView):
         doesn't currently provide a hook for dynamic class resolution.
         """
         a_terminations_type = CABLE_TERMINATION_TYPES.get(
-            request.GET.get('a_terminations_type') or request.POST.get('a_terminations_type')
+            request.POST.get('a_terminations_type') or request.GET.get('a_terminations_type')
         )
         b_terminations_type = CABLE_TERMINATION_TYPES.get(
-            request.GET.get('b_terminations_type') or request.POST.get('b_terminations_type')
+            request.POST.get('b_terminations_type') or request.GET.get('b_terminations_type')
         )
 
         if obj.pk: