Opened 11 years ago
Closed 11 years ago
#21591 closed Cleanup/optimization (fixed)
get_messages is not covered in the documentation
Reported by: | merb | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | messages |
Cc: | Natim87 | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Currently theres a get_messages method in the django messages framework which could be used to get messages.
At the moment it's not covered in the documentation.
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.
Change History (3)
comment:1 by , 11 years ago
Keywords: | messages added |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | 1.6 → master |
comment:2 by , 11 years ago
Cc: | added |
---|---|
Has patch: | set |
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sounds like a reasonable addition to the documentation.