Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 318 Bytes
# -*- coding: utf-8 -*-
from django.db.models.query import QuerySet
class PublisherQuerySet(QuerySet):
"""Added publisher specific filters to queryset.
"""
def drafts(self):
return self.filter(publisher_is_draft=True)
def public(self):
return self.filter(publisher_is_draft=False)
Something went wrong with that request. Please try again.