Răsfoiți Sursa

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

Jeremy Stretch 1 an în urmă
părinte
comite
e9dd5aa17b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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):
         return {
-            'content_type': request.GET.get('content_type'),
+            'object_type': request.GET.get('object_type'),
             'object_id': request.GET.get('object_id'),
         }