__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
from django.db import models
[docs]class JobOpeningQuerySet(models.QuerySet):
[docs] def drafted(self):
from careers.models import JobOpening
return self.filter(status=JobOpening.DRAFTED)
[docs] def publicly_visible(self):
from careers.models import JobOpening
return self.filter(status=JobOpening.VISIBLE)
[docs] def closed(self):
from careers.models import JobOpening
return self.filter(status=JobOpening.CLOSED)