Skip to content

Commit b3c38be

Browse files
George ChengGeorge Cheng
authored andcommitted
refine inferitance
1 parent 0c6f6aa commit b3c38be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mailbox/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def get_queryset(self):
5050
return MailboxQuerySet(self.model, using=self._db)
5151

5252

53-
class ActiveMailboxManager(models.Manager):
53+
class ActiveMailboxManager(MailboxManager):
5454
def get_queryset(self):
55-
return MailboxQuerySet(self.model, using=self._db).filter(
55+
return super().get_queryset().filter(
5656
active=True,
5757
)
5858

0 commit comments

Comments
 (0)