Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

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

Backport of [16866] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3606f1f7b2eb422a49944824b1d8dbc227dc879f 1 parent add0628
Simon Meers authored September 21, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  docs/ref/contrib/messages.txt
4  docs/ref/contrib/messages.txt
@@ -210,6 +210,10 @@ If you're using the context processor, your template should be rendered with a
210 210
 ``RequestContext``. Otherwise, ensure ``messages`` is available to
211 211
 the template context.
212 212
 
  213
+Even if you know there is only just one message, you should still iterate over
  214
+the ``messages`` sequence, because otherwise the message storage will not be cleared
  215
+for the next request.
  216
+
213 217
 Creating custom message levels
214 218
 ------------------------------
215 219
 

0 notes on commit 3606f1f

Please sign in to comment.
Something went wrong with that request. Please try again.