bornhack-website/news/managers.py

10 lines
159 B
Python

from django.db.models import QuerySet
class NewsItemQuerySet(QuerySet):
def public(self):
return self.filter(
public=True
)