From de318df421f65f5935653bfa26cbacd73ea51957 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 17 Sep 2024 10:30:27 -0700 Subject: [PATCH] 17517 fix cable creation when switching device type --- netbox/dcim/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index 1f5b73603..98665a7a0 100644 --- a/netbox/dcim/views.py +++ b/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: