summaryrefslogtreecommitdiff
path: root/django/contrib/messages
AgeCommit message (Collapse)Author
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
2024-08-08Fixed #35622 -- Made unittest ignore Django assertions in traceback frames.Adam Johnson
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2023-10-24Fixed #34923 -- Avoided initializing LEVEL_TAGS when importing ↵Mariusz Felisiak
django.contrib.messages. Regression in b7fe36ad37fb18c4bc7932c0aec6ae4f299b9622. Thanks James Gillard for the report.
2023-09-05Fixed #34730 -- Added ↵François Freitag
django.contrib.messages.test.MessagesTestMixin.assertMessages().
2023-08-25Refs #34730 -- Made Message importable from django.contrib.messages.François Freitag
2023-08-24Refs #24121 -- Added __repr__() to Message.François Freitag
2023-03-27Refs #28948 -- Removed superfluous messages from cookie through bisect.David Wobrock
2023-03-27Refs #28948 -- Precomputed once serialized cookie messages.David Wobrock
When the cookie size is too long, the same messages were serialized over and over again.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-25Refs #20349 -- Avoided loading testing libraries when not needed.Collin Anderson
2022-01-24Fixed #33458 -- Fixed encoding of messages with empty string as extra_tags.Timothy McCurrach
2021-11-26Fixed #33303 -- Changed messages' level tags on MESSAGE_TAGS setting change.Hasan Ramezani
2021-09-20Refs #32191 -- Removed for the pre-Django 3.2 format of messages in ↵Mariusz Felisiak
CookieStorage. Per deprecation timeline.
2021-06-07Refs #24121 -- Added __repr__() to ChangeList and BaseStorage.saeedblanchette
2021-04-14Fixed #32643 -- Fixed decoding of messages in the pre-Django 3.2 format.Florian Apolloner
Thanks Jan Pieter Waagmeester for the report. Regression in 2d6179c819010f6a9d00835d5893c4593c0b85a0.
2021-03-16Refs #32508 -- Raised ImproperlyConfigured instead of using "assert" in ↵Daniyal
SessionStorage.
2021-01-14Refs #27604 -- Removed support for the pre-Django 3.1 encoding format in ↵Mariusz Felisiak
CookieStorage. Per deprecation timeline.
2021-01-07Fixed #32191 -- Made CookieStorage use RFC 6265 compliant format.Florian Apolloner
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
2020-11-20Simplified MessageEncoder instantiation with default separators.Florian Apolloner
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2020-07-16Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak
HttpResponse.delete_cookie(). Cookies with the "SameSite" flag set to None and without the "secure" flag will be soon rejected by latest browser versions. This affects sessions and messages cookies.
2020-02-04Refs #27604 -- Fixed loading of legacy cookie hashes when ↵Florian Apolloner
CookieStorage.key_salt is changed. This partially reverts bcc9fa25285f506666fa5074fc43c7114d61bb79 to not break legacy hashes when key_salt is actually changed.
2020-02-04Fixed #27604 -- Used the cookie signer to sign message cookies.Claude Paroz
Co-authored-by: Craig Anderson <craiga@craiga.id.au>
2020-02-04Refs #27604 -- Added CookieStorage.key_salt to allow customization.Claude Paroz
2020-01-31Refs #22426 -- Removed pre-Django 1.5 messages compatibility code and test.Claude Paroz
This reverts commit f286721f7fdc2202f77a5f4d650d9d0779b86811.
2019-10-23Refs #26601 -- Removed obsolete workarounds for MIDDLEWARE_CLASSES setting.Sergey Fedoseev
2019-10-01Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU
implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically.
2018-07-18Removed duplicate words in various comments.Mariusz Felisiak
2018-04-13Fixed #27863 -- Added support for the SameSite cookie flag.Alex Gaynor
Thanks Alex Gaynor for contributing to the patch.
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-10-16Fixed typo in MessageMiddleware.process_response() docstring.Joe Arthur
2017-09-25Refs #27857 -- Replaced json.loads() ValueError exception catching with ↵Tim Graham
JSONDecodeError.
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-05-10Refs #27795 -- Replaced force_text() with str() in contrib.messagesClaude Paroz
Thanks Tim Graham for the review.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-04Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-09Fixed #27688 -- Made messages' add_message() request check use ducktyping.Raffaele Salmaso
2016-08-25Replaced property() usage with decorator in several places.Berker Peksag
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham