Created
April 23, 2010 15:22
-
-
Save sweemeng/376668 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from haystack import indexes | |
from haystack import site | |
from models import * | |
class IssueIndex(indexes.SearchIndex): | |
text = indexes.CharField(document=True,use_template=True) | |
title = indexes.CharField(model_attr="title") | |
description = indexes.CharField(model_attr="description") | |
location = indexes.CharField(model_attr="description") | |
issuetype = indexes.CharField(model_attr="issuetype") | |
site.register(Issue,IssueIndex) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment