From 3525a3a02e194114a0e8dce2ed93508c2d775714 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Thu, 24 Oct 2024 11:32:24 -0700 Subject: [PATCH] 7699 change mixin name --- netbox/netbox/models/features.py | 4 ++-- netbox/virtualization/models/clusters.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/netbox/netbox/models/features.py b/netbox/netbox/models/features.py index c6685cba0..e943afb40 100644 --- a/netbox/netbox/models/features.py +++ b/netbox/netbox/models/features.py @@ -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 """ diff --git a/netbox/virtualization/models/clusters.py b/netbox/virtualization/models/clusters.py index bd83bf88d..03aef1215 100644 --- a/netbox/virtualization/models/clusters.py +++ b/netbox/virtualization/models/clusters.py @@ -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. """