Skip to content

Commit

Permalink
Drop uses of JoinManager from the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuurne committed Apr 16, 2024
1 parent b3636bb commit ce29741
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from model_utils.fields import MonitorField, SplitField, StatusField, UUIDField
from model_utils.managers import (
InheritanceManager,
JoinManager,
JoinQueryset,
ModelT,
QueryManager,
QuerySet,
Expand Down Expand Up @@ -416,7 +416,7 @@ class ModelWithCustomDescriptor(models.Model):

class BoxJoinModel(models.Model):
name = models.CharField(max_length=32)
objects: ClassVar[JoinManager[BoxJoinModel]] = JoinManager()
objects = JoinQueryset.as_manager()


class JoinItemForeignKey(models.Model):
Expand All @@ -426,7 +426,7 @@ class JoinItemForeignKey(models.Model):
null=True,
on_delete=models.CASCADE
)
objects: ClassVar[JoinManager[JoinItemForeignKey]] = JoinManager()
objects = JoinQueryset.as_manager()


class CustomUUIDModel(UUIDModel):
Expand Down

0 comments on commit ce29741

Please sign in to comment.