Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)

src/a/v/avocado-2.3.3/avocado/core/managers.py   avocado(Download)
from django.db import models
from .cache import CacheQuerySet
 
 
# Taken from Carl Meyer's django-model-utils
class PublishedQuerySet(CacheQuerySet):
    "Adds additional helper methods focused around access and permissions."
    def published(self):
        "Returns all published non-archived objects."
        return self.filter(published=True, archived=False)

src/a/v/avocado-HEAD/avocado/core/managers.py   avocado(Download)
from django.db import models
from .cache import CacheQuerySet
 
 
# Taken from Carl Meyer's django-model-utils
class PublishedQuerySet(CacheQuerySet):
    "Adds additional helper methods focused around access and permissions."
    def published(self):
        "Returns all published non-archived objects."
        return self.filter(published=True, archived=False)