From 592b527efdb4ed51239a11f081d1293b1e4b5177 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Tue, 9 May 2023 21:45:41 +0530 Subject: [PATCH] changes as per review --- .../tenancy/{contact_children.html => object_contacts.html} | 0 netbox/tenancy/views.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename netbox/templates/tenancy/{contact_children.html => object_contacts.html} (100%) 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(),