diff options
| author | Simon Meers <simon@simonmeers.com> | 2011-09-21 22:43:41 +0000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2011-09-21 22:43:41 +0000 |
| commit | cfadc36be592a24037928206b3dcba170471f52a (patch) | |
| tree | 6bca28c71b61a90a5e93dfdce401dc4adec32cde | |
| parent | e6088dce980d0032267b696fc8f725073a48965c (diff) | |
Fixed #16904 -- Additional clarification regarding contrib.messages iteration. Thanks murphyke for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/ref/contrib/messages.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/contrib/messages.txt b/docs/ref/contrib/messages.txt index ceead9d23c..22f6bd0496 100644 --- a/docs/ref/contrib/messages.txt +++ b/docs/ref/contrib/messages.txt @@ -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 ------------------------------ |
