There is only one note about how to avoid clearing messages.
> [https://docs.djangoproject.com/en/dev/ref/contrib/messages/#expiration-
of-messages]
Btw. this cleanup needs to be done, since more and more people use ajax or
an REST API to query some django stuff. so you can't access the messages
in the template. It would be good if somebody will introduce the
{{{
get_messages(request)
}}}
function in the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/21591>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* version: 1.6 => master
* keywords: => messages
* needs_docs: => 0
* stage: Unreviewed => Accepted
Comment:
Sounds like a reasonable addition to the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/21591#comment:1>
* cc: Natim87 (added)
* has_patch: 0 => 1
Comment:
PR here : https://github.com/django/django/pull/2066
--
Ticket URL: <https://code.djangoproject.com/ticket/21591#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"24fcca6bddca3db33ac73c29ad9167ac279e4d94"]:
{{{
#!CommitTicketReference repository=""
revision="24fcca6bddca3db33ac73c29ad9167ac279e4d94"
Fixed #21591 -- Added documentation about contrib.messages.get_messages.
Refs https://code.djangoproject.com/ticket/21591
Thanks to track user merb for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21591#comment:3>