mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-14 15:52:18 -06:00
committed by
GitHub
parent
1508e3a770
commit
864db469ba
@@ -16,7 +16,6 @@ from ipam.models import IPAddress
|
||||
from ipam.tables import InterfaceVLANTable, VLANTranslationRuleTable
|
||||
from netbox.constants import DEFAULT_ACTION_PERMISSIONS
|
||||
from netbox.views import generic
|
||||
from tenancy.views import ObjectContactsView
|
||||
from utilities.query import count_related
|
||||
from utilities.query_functions import CollateAsChar
|
||||
from utilities.views import GetRelatedModelsMixin, ViewTab, register_model_view
|
||||
@@ -148,11 +147,6 @@ class ClusterGroupBulkDeleteView(generic.BulkDeleteView):
|
||||
table = tables.ClusterGroupTable
|
||||
|
||||
|
||||
@register_model_view(ClusterGroup, 'contacts')
|
||||
class ClusterGroupContactsView(ObjectContactsView):
|
||||
queryset = ClusterGroup.objects.all()
|
||||
|
||||
|
||||
#
|
||||
# Clusters
|
||||
#
|
||||
@@ -344,11 +338,6 @@ class ClusterRemoveDevicesView(generic.ObjectEditView):
|
||||
})
|
||||
|
||||
|
||||
@register_model_view(Cluster, 'contacts')
|
||||
class ClusterContactsView(ObjectContactsView):
|
||||
queryset = Cluster.objects.all()
|
||||
|
||||
|
||||
#
|
||||
# Virtual machines
|
||||
#
|
||||
@@ -509,11 +498,6 @@ class VirtualMachineBulkDeleteView(generic.BulkDeleteView):
|
||||
table = tables.VirtualMachineTable
|
||||
|
||||
|
||||
@register_model_view(VirtualMachine, 'contacts')
|
||||
class VirtualMachineContactsView(ObjectContactsView):
|
||||
queryset = VirtualMachine.objects.all()
|
||||
|
||||
|
||||
#
|
||||
# VM interfaces
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user