Source code for news.managers

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


from django.db import models


[docs]class NewsManager(models.Manager):
[docs] def homepage(self): return self.filter(published=True, on_homepage=True)