from django.db import models


class ContentQuerySet(models.query.QuerySet):

    def are_active(self):
        return self.filter(active=True)


class ContentManager(models.Manager):

    def get_queryset(self):
        return ContentQuerySet(self.model, using=self._db)

    def are_active(self):
        return self.get_queryset().are_active()
from django.db import models


class ContentQuerySet(models.query.QuerySet):

    def are_active(self):
        return self.filter(active=True)


class ContentManager(models.Manager):

    def get_queryset(self):
        return ContentQuerySet(self.model, using=self._db)

    def are_active(self):
        return self.get_queryset().are_active()