|
|
@@ -1,4 +1,5 @@
|
|
|
from django.contrib.contenttypes.models import ContentType
|
|
|
+from django.http import QueryDict
|
|
|
from django.shortcuts import get_object_or_404
|
|
|
|
|
|
from circuits.models import Circuit
|
|
|
@@ -365,6 +366,12 @@ class ContactAssignmentEditView(generic.ObjectEditView):
|
|
|
instance.object = get_object_or_404(content_type.model_class(), pk=request.GET.get('object_id'))
|
|
|
return instance
|
|
|
|
|
|
+ def get_extra_addanother_params(self, request):
|
|
|
+ return {
|
|
|
+ 'content_type': request.GET.get('content_type'),
|
|
|
+ 'object_id': request.GET.get('object_id'),
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
class ContactAssignmentDeleteView(generic.ObjectDeleteView):
|
|
|
queryset = ContactAssignment.objects.all()
|