"""
Managers of ``blog`` application.
"""
from django.db import models


class CategoryOnlineManager(models.Manager):
    """
    Manager that manages online ``Category`` objects.
    """

    def get_query_set(self):
        from blog.models import Entry
        entry_status = Entry.STATUS_ONLINE
        return super(CategoryOnlineManager, self).get_query_set().filter(
            entry__status=entry_status).distinct()


class EntryOnlineManager(models.Manager):
    """
    Manager that manages online ``Entry`` objects.
    """

    def get_query_set(self):
        return super(EntryOnlineManager, self).get_query_set().filter(
            status=self.model.STATUS_ONLINE)


"""
Managers of ``blog`` application.
"""
from django.db import models


class CategoryOnlineManager(models.Manager):
    """
    Manager that manages online ``Category`` objects.
    """

    def get_queryset(self):
        from blog.models import Entry
        entry_status = Entry.STATUS_ONLINE
        return super(CategoryOnlineManager, self).get_queryset().filter(
            entry__status=entry_status).distinct()


class EntryOnlineManager(models.Manager):
    """
    Manager that manages online ``Entry`` objects.
    """

    def get_queryset(self):
        return super(EntryOnlineManager, self).get_queryset().filter(
            status=self.model.STATUS_ONLINE)


Change the method get_query_set() to get_queryset() as required by django 1.7
Change the method get_query_set() to get_queryset() as required by django 1.7
