Skip to content

Commit f4d4483

Browse files
arthansonjeremystretch
authored andcommitted
17517 fix cable creation when switching device type
1 parent 8deaaae commit f4d4483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox/dcim/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,10 +3253,10 @@ def alter_object(self, obj, request, url_args, url_kwargs):
32533253
doesn't currently provide a hook for dynamic class resolution.
32543254
"""
32553255
a_terminations_type = CABLE_TERMINATION_TYPES.get(
3256-
request.GET.get('a_terminations_type') or request.POST.get('a_terminations_type')
3256+
request.POST.get('a_terminations_type') or request.GET.get('a_terminations_type')
32573257
)
32583258
b_terminations_type = CABLE_TERMINATION_TYPES.get(
3259-
request.GET.get('b_terminations_type') or request.POST.get('b_terminations_type')
3259+
request.POST.get('b_terminations_type') or request.GET.get('b_terminations_type')
32603260
)
32613261

32623262
if obj.pk:

0 commit comments

Comments
 (0)