mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
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)
|
||||
|
||||
|
||||
class ActiveMailboxManager(models.Manager):
|
||||
class ActiveMailboxManager(MailboxManager):
|
||||
def get_queryset(self):
|
||||
return MailboxQuerySet(self.model, using=self._db).filter(
|
||||
return super().get_queryset().filter(
|
||||
active=True,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue