X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a9eef437702d5df7a2f97010e6798c689371808c..183aa1f98a61acb441e082951ff8c24c93cfcc27:/forum_modules/sphinxfulltext/models.py 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', + ) + )