]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/sphinxfulltext/models.py
fixes a nasty bug causing a view to never return a response under certain circumstances
[osqa.git] / forum_modules / sphinxfulltext / models.py
old mode 100755 (executable)
new mode 100644 (file)
index 66b8ddf..a188728
@@ -1,10 +1,11 @@
-from forum.models import Question\r
-from django.conf import settings\r
-from djangosphinx.manager import SphinxSearch\r
-\r
-\r
-Question.add_to_class('search', SphinxSearch(\r
-                                   index=' '.join(settings.SPHINX_SEARCH_INDICES),\r
-                                   mode='SPH_MATCH_ALL',\r
-                                )\r
-                      )\r
+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',
+                                )
+                      )