1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#1344: Show object type & name when assigning a contact

This commit is contained in:
jeremystretch
2021-11-04 13:44:02 -04:00
parent a5024a65a0
commit 803e0bfe72
2 changed files with 24 additions and 0 deletions

View File

@@ -338,6 +338,7 @@ class ContactBulkDeleteView(generic.BulkDeleteView):
class ContactAssignmentEditView(generic.ObjectEditView):
queryset = ContactAssignment.objects.all()
model_form = forms.ContactAssignmentForm
template_name = 'tenancy/contactassignment_edit.html'
def alter_obj(self, instance, request, args, kwargs):
if not instance.pk: