File try.patch of Package python-django-haystack

Index: django_haystack-3.3.0/haystack/backends/whoosh_backend.py
===================================================================
--- django_haystack-3.3.0.orig/haystack/backends/whoosh_backend.py
+++ django_haystack-3.3.0/haystack/backends/whoosh_backend.py
@@ -788,6 +788,7 @@ class WhooshSearchBackend(BaseSearchBack
                 del additional_fields[DJANGO_ID]
 
                 if highlight:
+                    raise Error("we are highlighting")
                     sa = StemmingAnalyzer()
                     formatter = WhooshHtmlFormatter("em")
                     terms = [token.text for token in sa(query_string)]
openSUSE Build Service is sponsored by