changes as per review

This commit is contained in:
Abhimanyu Saharan 2023-05-09 21:45:41 +05:30
parent 6430072593
commit 592b527efd
2 changed files with 2 additions and 2 deletions

View File

@ -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(),