Browse files

[1.3.X] Fixed #16904 -- Additional clarification regarding…

…ssages iteration. Thanks murphyke for the report and patch.

Backport of [16866] from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent add0628 commit 3606f1f7b2eb422a49944824b1d8dbc227dc879f @DrMeers DrMeers committed Sep 21, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/ref/contrib/messages.txt
@@ -210,6 +210,10 @@ If you're using the context processor, your template should be rendered with a
``RequestContext``. Otherwise, ensure ``messages`` is available to
the template context.
+Even if you know there is only just one message, you should still iterate over
+the ``messages`` sequence, because otherwise the message storage will not be cleared
+for the next request.
Creating custom message levels

0 comments on commit 3606f1f

Please sign in to comment.