Skip to content

Commit

Permalink
Uses only the original name in haystack autocomplete.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Sep 22, 2012
1 parent 95fdbff commit c75f17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terms/search_indexes.py
Expand Up @@ -5,7 +5,7 @@


class TermIndex(RealTimeSearchIndex, Indexable): class TermIndex(RealTimeSearchIndex, Indexable):
text = CharField(document=True, use_template=True) text = CharField(document=True, use_template=True)
content_auto = EdgeNgramField(model_attr='name') content_auto = EdgeNgramField(model_attr='original_name')


def get_model(self): def get_model(self):
return Term return Term

0 comments on commit c75f17e

Please sign in to comment.