diff --git a/doc/templates.rst b/doc/templates.rst index 29050230f..a6a56d0a9 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -745,7 +745,7 @@ Tests can be negated by using the ``is not`` operator: .. code-block:: jinja - {% if post.status is constant('Post::PUBLISHED') %} + {% if post.status is not constant('Post::PUBLISHED') %} {# is equivalent to #} {% if not (post.status is constant('Post::PUBLISHED')) %}