X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a9eef437702d5df7a2f97010e6798c689371808c..d72e2bf6337cfb556c2ab8e31477a1afa1ed6a6e:/forum_modules/sphinxfulltext/models.py?ds=sidebyside diff --git a/forum_modules/sphinxfulltext/models.py b/forum_modules/sphinxfulltext/models.py old mode 100755 new mode 100644 index 66b8ddf..a188728 --- a/forum_modules/sphinxfulltext/models.py +++ b/forum_modules/sphinxfulltext/models.py @@ -1,10 +1,11 @@ -from forum.models import Question -from django.conf import settings -from djangosphinx.manager import SphinxSearch - - -Question.add_to_class('search', SphinxSearch( - index=' '.join(settings.SPHINX_SEARCH_INDICES), - mode='SPH_MATCH_ALL', - ) - ) +from forum.models import Question +from django.conf import settings +from djangosphinx.manager import SphinxSearch + +from djangosphinx.models import SphinxSearch + +Question.add_to_class('search', SphinxSearch( + index=' '.join(settings.SPHINX_SEARCH_INDICES), + mode='SPH_MATCH_ALL', + ) + )