Skip to content
Newer
Older
100644 11 lines (9 sloc) 318 Bytes
a9a32ce @chrisglass Publisher source encoding changes
chrisglass authored Jan 21, 2011
1 # -*- coding: utf-8 -*-
eb89e76 @pcicman Default manager on every publisher model now links to PublisherManage…
pcicman authored Jul 21, 2009
2 from django.db.models.query import QuerySet
3
4 class PublisherQuerySet(QuerySet):
5 """Added publisher specific filters to queryset.
6 """
7 def drafts(self):
8 return self.filter(publisher_is_draft=True)
9
10 def public(self):
11 return self.filter(publisher_is_draft=False)
Something went wrong with that request. Please try again.