Source code for commentaries.managers

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


from django.db import models


[docs]class CommentaryManager(models.Manager):
[docs] def vetted(self, **kwargs): return self.filter(vetted=True, **kwargs)
[docs] def awaiting_vetting(self, **kwargs): return self.filter(vetted=False, **kwargs)
[docs] def open_for_commenting(self): return self.filter(open_for_commenting=True)