summaryrefslogtreecommitdiff
path: root/django/contrib/messages/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-26/+57
|
* Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan2017-02-041-22/+11
|
* Fixed #27688 -- Made messages' add_message() request check use ducktyping.Raffaele Salmaso2017-01-091-11/+15
|
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-2/+4
|
* Used getattr() to simplify contrib.messages.api.Curtis Maloney2015-09-261-2/+2
|
* Used ternary operator to simplify contrib.messages.api.GhostThrone2015-09-251-8/+2
|
* Fixes #21412 -- Better error message for messages.add_messageDenis Cornehl2013-11-231-0/+5
| | | | | | | | Problem were users calling messages.debug/info/* with a wrong argument and getting the error "You cannot add messages without installing MessageMiddleware" Thanks to trac-user merb for the report.
* Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel2011-07-131-1/+0
| | | | | | the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15757 - removed remaining instances of get_and_delete_messagesLuke Plant2011-04-071-15/+6
| | | | | | Thanks to void for the report, and julien for the bulk of the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Advanced deprecation of user-based messages and the LegacyFallbackStorage in ↵Russell Keith-Magee2011-04-021-2/+0
| | | | | | contrib.messages. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13170: Make get_level and set_level importable from ↵Karen Tracey2010-03-211-0/+1
| | | | | | | | | django.contrib.messages, as documented. Thanks dm, SmileyChris, tobias. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12575 - created a better interface for getting/setting the effective ↵Luke Plant2010-01-121-0/+29
| | | | | | | | | | level of contrib.messages Thanks Chris Beaven. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4604 - Configurable message passing system, supporting anonymous usersLuke Plant2009-12-091-0/+84
This deprecates User.message_set in favour of a configurable messaging system, with backends provided for cookie storage, session storage and backward compatibility. Many thanks to Tobias McNulty for the bulk of the work here, with contributions from Chris Beaven (SmileyChris) and lots of code review from Russell Keith-Magee, and input from many others. Also credit to the authors of various messaging systems for Django whose ideas may have been pinched :-) git-svn-id: http://code.djangoproject.com/svn/django/trunk@11804 bcc190cf-cafb-0310-a4f2-bffc1f526a37