bornhack-website/news/managers.py

10 lines
159 B
Python
Raw Normal View History

2016-05-30 19:36:14 +00:00
from django.db.models import QuerySet
class NewsItemQuerySet(QuerySet):
def public(self):
return self.filter(
public=True
)