from django.conf import settings
from haystack import indexes
from fnpdjango.utils.models.translation import add_translatable_index, localize_field
from django.conf import settings
from haystack import indexes
from fnpdjango.utils.models.translation import add_translatable_index, localize_field
model_attr=localize_field('body', settings.LANGUAGE_CODE),
document=True)
date = indexes.DateTimeField(indexed=True, model_attr="date")
model_attr=localize_field('body', settings.LANGUAGE_CODE),
document=True)
date = indexes.DateTimeField(indexed=True, model_attr="date")