mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
changes as per review
This commit is contained in:
parent
6430072593
commit
592b527efd
@ -14,11 +14,11 @@ from . import filtersets, forms, tables
|
|||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
|
|
||||||
class ChildContactView(generic.ObjectChildrenView):
|
class ObjectContactsView(generic.ObjectChildrenView):
|
||||||
child_model = Contact
|
child_model = Contact
|
||||||
table = tables.ContactTable
|
table = tables.ContactTable
|
||||||
filterset = filtersets.ContactFilterSet
|
filterset = filtersets.ContactFilterSet
|
||||||
template_name = 'tenancy/contact_children.html'
|
template_name = 'tenancy/object_contacts.html'
|
||||||
tab = ViewTab(
|
tab = ViewTab(
|
||||||
label=_('Contacts'),
|
label=_('Contacts'),
|
||||||
badge=lambda obj: obj.contacts.count(),
|
badge=lambda obj: obj.contacts.count(),
|
||||||
|
Loading…
Reference in New Issue
Block a user