forked from mirror/django-mailbox
refine inferitance
This commit is contained in:
parent
0c6f6aa6ce
commit
b3c38be70e
1 changed files with 2 additions and 2 deletions
|
|
@ -50,9 +50,9 @@ class MailboxManager(models.Manager):
|
||||||
return MailboxQuerySet(self.model, using=self._db)
|
return MailboxQuerySet(self.model, using=self._db)
|
||||||
|
|
||||||
|
|
||||||
class ActiveMailboxManager(models.Manager):
|
class ActiveMailboxManager(MailboxManager):
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
return MailboxQuerySet(self.model, using=self._db).filter(
|
return super().get_queryset().filter(
|
||||||
active=True,
|
active=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue