Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save notanumber/492548 to your computer and use it in GitHub Desktop.
Save notanumber/492548 to your computer and use it in GitHub Desktop.
Index: haystack/views.py
===================================================================
--- haystack/views.py (revision 3558)
+++ haystack/views.py (working copy)
@@ -113,6 +113,9 @@
}
context.update(self.extra_context())
+ if settings.HAYSTACK_INCLUDE_SPELLING:
+ context['spelling_suggestion'] = self.form.search().spelling_suggestion()
+
return render_to_response(self.template, context, context_instance=self.context_class(self.request))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment