Commits

funkybob  committed bc00eb5

Removed use of haystack

  • Participants
  • Parent commits 56c6a75

Comments (0)

Files changed (1)

File flat_forum/search_indexes.py

-import datetime
-from haystack.indexes import *
-from haystack import site
-from flat_forum.models import Post
-
-class PostIndex(SearchIndex):
-    text = CharField(document=True, use_template=True)
-    author = CharField(model_attr='posted_by')
-    pub_date = DateTimeField(model_attr='created')
-
-    def index_queryset(self):
-        return Post.objects.all()
-
-site.register(Post, PostIndex)