7699 change mixin name

This commit is contained in:
Arthur Hanson 2024-10-24 11:32:24 -07:00
parent cfdab0e87f
commit 3525a3a02e
2 changed files with 4 additions and 4 deletions

View File

@ -24,8 +24,8 @@ from utilities.views import register_model_view
__all__ = ( __all__ = (
'BookmarksMixin', 'BookmarksMixin',
'CachedLocationScopeMixin',
'ChangeLoggingMixin', 'ChangeLoggingMixin',
'CachedScopeMixin',
'CloningMixin', 'CloningMixin',
'ContactsMixin', 'ContactsMixin',
'CustomFieldsMixin', '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 Cached associations for scope to enable efficient filtering - must define scope and scope_type on model
""" """

View File

@ -6,7 +6,7 @@ from django.utils.translation import gettext_lazy as _
from dcim.models import Device from dcim.models import Device
from netbox.models import OrganizationalModel, PrimaryModel 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.choices import *
from virtualization.constants import CLUSTER_SCOPE_TYPES from virtualization.constants import CLUSTER_SCOPE_TYPES
@ -44,7 +44,7 @@ class ClusterGroup(ContactsMixin, OrganizationalModel):
verbose_name_plural = _('cluster groups') 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. A cluster of VirtualMachines. Each Cluster may optionally be associated with one or more Devices.
""" """