mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 04:16:24 -06:00
7699 change mixin name
This commit is contained in:
parent
cfdab0e87f
commit
3525a3a02e
@ -24,8 +24,8 @@ from utilities.views import register_model_view
|
||||
|
||||
__all__ = (
|
||||
'BookmarksMixin',
|
||||
'CachedLocationScopeMixin',
|
||||
'ChangeLoggingMixin',
|
||||
'CachedScopeMixin',
|
||||
'CloningMixin',
|
||||
'ContactsMixin',
|
||||
'CustomFieldsMixin',
|
||||
@ -582,7 +582,7 @@ class SyncedDataMixin(models.Model):
|
||||
))
|
||||
|
||||
|
||||
class CachedLocationScopeMixin(models.Model):
|
||||
class CachedScopeMixin(models.Model):
|
||||
"""
|
||||
Cached associations for scope to enable efficient filtering - must define scope and scope_type on model
|
||||
"""
|
||||
|
@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from dcim.models import Device
|
||||
from netbox.models import OrganizationalModel, PrimaryModel
|
||||
from netbox.models.features import CachedLocationScopeMixin, ContactsMixin
|
||||
from netbox.models.features import CachedScopeMixin, ContactsMixin
|
||||
from virtualization.choices import *
|
||||
from virtualization.constants import CLUSTER_SCOPE_TYPES
|
||||
|
||||
@ -44,7 +44,7 @@ class ClusterGroup(ContactsMixin, OrganizationalModel):
|
||||
verbose_name_plural = _('cluster groups')
|
||||
|
||||
|
||||
class Cluster(ContactsMixin, CachedLocationScopeMixin, PrimaryModel):
|
||||
class Cluster(ContactsMixin, CachedScopeMixin, PrimaryModel):
|
||||
"""
|
||||
A cluster of VirtualMachines. Each Cluster may optionally be associated with one or more Devices.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user