Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #16904 -- Additional clarification regarding contrib.messages i…

…teration. Thanks murphyke for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cfadc36be592a24037928206b3dcba170471f52a 1 parent e6088dc
Simon Meers DrMeers authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/ref/contrib/messages.txt
4 docs/ref/contrib/messages.txt
View
@@ -183,6 +183,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
------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.