Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #257 from czpython/fixes/search-index
Browse files Browse the repository at this point in the history
make sure to use internal parler language if available
  • Loading branch information
mkoistinen committed Jul 13, 2015
2 parents 2b43012 + bd2a70b commit f027730
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aldryn_newsblog/search_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class ArticleIndex(get_index_base()):

index_title = True

def get_language(self, obj):
return getattr(obj, '_current_language', None)

def get_title(self, obj):
return obj.title

Expand Down

0 comments on commit f027730

Please sign in to comment.