diff --git a/netbox/templates/tenancy/contact_children.html b/netbox/templates/tenancy/object_contacts.html similarity index 100% rename from netbox/templates/tenancy/contact_children.html rename to netbox/templates/tenancy/object_contacts.html diff --git a/netbox/tenancy/views.py b/netbox/tenancy/views.py index 1faeabe8b..d7762062a 100644 --- a/netbox/tenancy/views.py +++ b/netbox/tenancy/views.py @@ -14,11 +14,11 @@ from . import filtersets, forms, tables from .models import * -class ChildContactView(generic.ObjectChildrenView): +class ObjectContactsView(generic.ObjectChildrenView): child_model = Contact table = tables.ContactTable filterset = filtersets.ContactFilterSet - template_name = 'tenancy/contact_children.html' + template_name = 'tenancy/object_contacts.html' tab = ViewTab( label=_('Contacts'), badge=lambda obj: obj.contacts.count(),