From b7677161cb2606fdd2204bdf4377a06f5191ed00 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Fri, 22 Mar 2024 16:27:12 +0100 Subject: [PATCH] Remove redundant definition of `JoinManager` from tests The `JoinManager` class already exists in `model_utils.managers`, with the exact same definition. --- tests/models.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/models.py b/tests/models.py index b5efe55e..10d6537d 100644 --- a/tests/models.py +++ b/tests/models.py @@ -5,7 +5,7 @@ from model_utils import Choices from model_utils.fields import MonitorField, SplitField, StatusField, UUIDField -from model_utils.managers import InheritanceManager, JoinManagerMixin, QueryManager +from model_utils.managers import InheritanceManager, JoinManager, QueryManager from model_utils.models import ( SoftDeletableModel, StatusModel, @@ -418,10 +418,6 @@ class ModelWithCustomDescriptor(models.Model): tracker = FieldTracker(fields=['tracked_custom_field', 'tracked_regular_field']) -class JoinManager(JoinManagerMixin, models.Manager): - pass - - class BoxJoinModel(models.Model): name = models.CharField(max_length=32) objects = JoinManager()