Przeglądaj źródła

Fixes #16806: Fix redirect URL when creating contact assignments with "add another" button

Jeremy Stretch 1 rok temu
rodzic
commit
e9dd5aa17b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      netbox/tenancy/views.py

+ 1 - 1
netbox/tenancy/views.py

@@ -365,7 +365,7 @@ class ContactAssignmentEditView(generic.ObjectEditView):
 
 
     def get_extra_addanother_params(self, request):
     def get_extra_addanother_params(self, request):
         return {
         return {
-            'content_type': request.GET.get('content_type'),
+            'object_type': request.GET.get('object_type'),
             'object_id': request.GET.get('object_id'),
             'object_id': request.GET.get('object_id'),
         }
         }