##// END OF EJS Templates
Merged in xdevelnet/neboard-1/xdevelnet/modify-readmemarkdown-according-to-recen-1462861521600 (pull request #19)...
Merged in xdevelnet/neboard-1/xdevelnet/modify-readmemarkdown-according-to-recen-1462861521600 (pull request #19) modify readme.markdown according to recent branch updates

File last commit:

r914:000a8767 default
r1555:54fb2b93 merge default
Show More
search_indexes.py
24 lines | 601 B | text/x-python | PythonLexer
from haystack import indexes
from boards.models import Post, Tag
__author__ = 'neko259'
class PostIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
def get_model(self):
return Post
def index_queryset(self, using=None):
return self.get_model().objects.all()
class TagIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
def get_model(self):
return Tag
def index_queryset(self, using=None):
return self.get_model().objects.all()