from elephantblog.models import Entry
from haystack import indexes
from feincms.module.page.models import Page


class PageIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Page

    def index_queryset(self, using=None):
        return self.get_model().objects.active()


class EntryIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Entry

    def index_queryset(self, using=None):
        return self.get_model().objects.active()

290249a8e5063a2b02464d2be26df4e5386f97b0
<mask token>


class EntryIndex(indexes.SearchIndex, indexes.Indexable):
    <mask token>

    def get_model(self):
        return Entry

    def index_queryset(self, using=None):
        return self.get_model().objects.active()

<mask token>


class PageIndex(indexes.SearchIndex, indexes.Indexable):
    <mask token>
    <mask token>
    <mask token>


class EntryIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Entry

    def index_queryset(self, using=None):
        return self.get_model().objects.active()

<mask token>


class PageIndex(indexes.SearchIndex, indexes.Indexable):
    <mask token>

    def get_model(self):
        return Page
    <mask token>


class EntryIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Entry

    def index_queryset(self, using=None):
        return self.get_model().objects.active()

<mask token>


class PageIndex(indexes.SearchIndex, indexes.Indexable):
    <mask token>

    def get_model(self):
        return Page

    def index_queryset(self, using=None):
        return self.get_model().objects.active()


class EntryIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Entry

    def index_queryset(self, using=None):
        return self.get_model().objects.active()

from elephantblog.models import Entry
from haystack import indexes
from feincms.module.page.models import Page


class PageIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Page

    def index_queryset(self, using=None):
        return self.get_model().objects.active()


class EntryIndex(indexes.SearchIndex, indexes.Indexable):
    text = indexes.CharField(document=True, use_template=True)

    def get_model(self):
        return Entry

    def index_queryset(self, using=None):
        return self.get_model().objects.active()
