summaryrefslogtreecommitdiff
path: root/django/contrib/messages/api.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2017-02-04Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan
2017-01-09Fixed #27688 -- Made messages' add_message() request check use ducktyping.Raffaele Salmaso
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2015-09-26Used getattr() to simplify contrib.messages.api.Curtis Maloney
2015-09-25Used ternary operator to simplify contrib.messages.api.GhostThrone
2013-11-23Fixes #21412 -- Better error message for messages.add_messageDenis Cornehl
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.
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
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
2011-04-07Fixed #15757 - removed remaining instances of get_and_delete_messagesLuke Plant
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
2011-04-02Advanced deprecation of user-based messages and the LegacyFallbackStorage in ↵Russell Keith-Magee
contrib.messages. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-21Fixed #13170: Make get_level and set_level importable from ↵Karen Tracey
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
2010-01-12Fixed #12575 - created a better interface for getting/setting the effective ↵Luke Plant
level of contrib.messages Thanks Chris Beaven. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-09Fixed #4604 - Configurable message passing system, supporting anonymous usersLuke Plant
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