From b98fecd188ae1b2a296c3cc4ced29776e4e3146e Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 19 Jul 2023 15:00:39 +0700 Subject: [PATCH] 6347 remove counters dict --- netbox/utilities/counter.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/netbox/utilities/counter.py b/netbox/utilities/counter.py index ecc8104fe..4dd850ee1 100644 --- a/netbox/utilities/counter.py +++ b/netbox/utilities/counter.py @@ -5,8 +5,6 @@ from functools import partial from .fields import CounterCacheField from .mixins import TrackingModelMixin -counters = {} - def post_save_receiver_counter(counter_instance, sender, instance, created, **kwargs): if created: @@ -69,8 +67,6 @@ class Counter: dispatch_uid=f'{counted_name}_post_delete', ) - counters[counted_name] = self - def parent_id(self, child): return getattr(child, self.foreign_key_field.attname)