Skip to content

Commit

Permalink
Merge pull request #407 from bmihelac/patch-1
Browse files Browse the repository at this point in the history
Fixed doc, ``query`` is context variable and not in request.
  • Loading branch information
bigjust committed Jul 29, 2013
2 parents ab9ed94 + eab727e commit 5a15854
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/templatetags.rst
Expand Up @@ -26,14 +26,14 @@ Syntax::
Example::

# Highlight summary with default behavior.
{% highlight result.summary with request.query %}
{% highlight result.summary with query %}
# Highlight summary but wrap highlighted words with a div and the
# following CSS class.
{% highlight result.summary with request.query html_tag "div" class "highlight_me_please" %}
{% highlight result.summary with query html_tag "div" class "highlight_me_please" %}
# Highlight summary but only show 40 words.
{% highlight result.summary with request.query max_length 40 %}
{% highlight result.summary with query max_length 40 %}

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

0 comments on commit 5a15854

Please sign in to comment.