summaryrefslogtreecommitdiff
path: root/django/contrib/messages/storage
AgeCommit message (Collapse)Author
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
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-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-24Fixed #33458 -- Fixed encoding of messages with empty string as extra_tags.Timothy McCurrach
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-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
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-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
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
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-22Fixed #22426 -- Added support old-style d.c.messages format.Florian Apolloner
Forward ported code from 1.5 that adds backwards compatibility with legacy message length. See commit 9e7183073f64e541587e8dcfd8bb3ddeb47f8162 for details. Thanks to Ofir Ovadia for the initial patch.
2014-02-08Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag
import_string(). Thanks Aymeric Augustin for the suggestion and review.
2013-12-26Removed a few gratuitous lambdas.Aymeric Augustin
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-11-11Fixed #21421 -- Added level_tag attribute on messages.Sjoerd Langkemper
Exposing the level name (e.g. "info") makes it possible to prepend something to the class name. For example, Twitter Bootstrap has an alert-info class. This class can now be added to the message using `class="alert-{{ message.level_tag }}". Because the level_tag was on the end of the `tags` property, it could not be used in this fashion when extra_tags were given.
2013-11-02Fixed all E261 warningscoagulant
2013-11-02More attacking E302 violatorsAlex Gaynor