Skip to content

Commit

Permalink
Remove redundant definition of JoinManager from tests
Browse files Browse the repository at this point in the history
The `JoinManager` class already exists in `model_utils.managers`,
with the exact same definition.
  • Loading branch information
mthuurne committed Mar 22, 2024
1 parent 26336b4 commit b767716
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit b767716

Please sign in to comment.