Source code for mails.managers

__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"


from django.db import models


[docs]class MailLogQuerySet(models.QuerySet):
[docs] def not_sent(self): return self.filter(status__in=["not_rendered", "rendered"])
[docs] def unrendered(self): return self.filter(status="not_rendered")
[docs] def rendered(self): return self.filter(status="rendered")