2013-10-31 10:01:19 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-09-08 14:44:41 +02:00
|
|
|
from haystack import indexes
|
|
|
|
from .models import Motion
|
|
|
|
|
|
|
|
|
|
|
|
class Index(indexes.SearchIndex, indexes.Indexable):
|
|
|
|
text = indexes.EdgeNgramField(document=True, use_template=True)
|
|
|
|
modelfilter_name = "Motions" # verbose_name of model
|
|
|
|
modelfilter_value = "motion.motion" # 'app_name.model_name'
|
|
|
|
|
|
|
|
def get_model(self):
|
|
|
|
return Motion
|