Permalink
Browse files

Uses only the original name in haystack autocomplete.

  • Loading branch information...
1 parent 95fdbff commit c75f17efd6b119f00771706db7218147f4afd03b @BertrandBordage committed Sep 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 terms/search_indexes.py
View
@@ -5,7 +5,7 @@
class TermIndex(RealTimeSearchIndex, Indexable):
text = CharField(document=True, use_template=True)
- content_auto = EdgeNgramField(model_attr='name')
+ content_auto = EdgeNgramField(model_attr='original_name')
def get_model(self):
return Term

0 comments on commit c75f17e

Please sign in to comment.