Skip to content

Commit 5a15854

Browse files
committed
Merge pull request django-haystack#407 from bmihelac/patch-1
Fixed doc, ``query`` is context variable and not in request.
2 parents ab9ed94 + eab727e commit 5a15854

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templatetags.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Syntax::
2626
Example::
2727

2828
# Highlight summary with default behavior.
29-
{% highlight result.summary with request.query %}
29+
{% highlight result.summary with query %}
3030
3131
# Highlight summary but wrap highlighted words with a div and the
3232
# following CSS class.
33-
{% highlight result.summary with request.query html_tag "div" class "highlight_me_please" %}
33+
{% highlight result.summary with query html_tag "div" class "highlight_me_please" %}
3434
3535
# Highlight summary but only show 40 words.
36-
{% highlight result.summary with request.query max_length 40 %}
36+
{% highlight result.summary with query max_length 40 %}
3737

3838
The highlighter used by this tag can be overridden as needed. See the
3939
:doc:`highlighting` documentation for more information.

0 commit comments

Comments
 (0)