Author: DrMeers
Date: 2011-09-21 15:43:41 -0700 (Wed, 21 Sep 2011)
New Revision: 16866

Modified:
   django/trunk/docs/ref/contrib/messages.txt
Log:
Fixed #16904 -- Additional clarification regarding contrib.messages iteration. 
Thanks murphyke for the report and patch.

Modified: django/trunk/docs/ref/contrib/messages.txt
===================================================================
--- django/trunk/docs/ref/contrib/messages.txt  2011-09-21 21:19:18 UTC (rev 
16865)
+++ django/trunk/docs/ref/contrib/messages.txt  2011-09-21 22:43:41 UTC (rev 
16866)
@@ -183,6 +183,10 @@
 ``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
 ------------------------------
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to