summaryrefslogtreecommitdiff
path: root/django/contrib/messages
Commit message (Collapse)AuthorAgeFilesLines
* Refs #28948 -- Removed superfluous messages from cookie through bisect.David Wobrock2023-03-271-11/+56
|
* Refs #28948 -- Precomputed once serialized cookie messages.David Wobrock2023-03-271-13/+42
| | | | | When the cookie size is too long, the same messages were serialized over and over again.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0711-78/+123
|
* Refs #20349 -- Avoided loading testing libraries when not needed.Collin Anderson2022-01-251-1/+1
|
* Fixed #33458 -- Fixed encoding of messages with empty string as extra_tags.Timothy McCurrach2022-01-241-1/+1
|
* Fixed #33303 -- Changed messages' level tags on MESSAGE_TAGS setting change.Hasan Ramezani2021-11-261-0/+11
|
* Refs #32191 -- Removed for the pre-Django 3.2 format of messages in ↵Mariusz Felisiak2021-09-201-15/+2
| | | | | | CookieStorage. Per deprecation timeline.
* Refs #24121 -- Added __repr__() to ChangeList and BaseStorage.saeedblanchette2021-06-071-0/+3
|
* Fixed #32643 -- Fixed decoding of messages in the pre-Django 3.2 format.Florian Apolloner2021-04-141-1/+2
| | | | | | Thanks Jan Pieter Waagmeester for the report. Regression in 2d6179c819010f6a9d00835d5893c4593c0b85a0.
* Refs #32508 -- Raised ImproperlyConfigured instead of using "assert" in ↵Daniyal2021-03-161-4/+7
| | | | SessionStorage.
* Refs #27604 -- Removed support for the pre-Django 3.1 encoding format in ↵Mariusz Felisiak2021-01-141-26/+1
| | | | | | CookieStorage. Per deprecation timeline.
* Fixed #32191 -- Made CookieStorage use RFC 6265 compliant format.Florian Apolloner2021-01-071-8/+22
| | | | Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
* Simplified MessageEncoder instantiation with default separators.Florian Apolloner2020-11-202-2/+6
|
* Fixed #31180 -- Configured applications automatically.Aymeric Augustin2020-07-211-2/+0
|
* Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak2020-07-161-1/+5
| | | | | | | | 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.
* Refs #27604 -- Fixed loading of legacy cookie hashes when ↵Florian Apolloner2020-02-041-1/+5
| | | | | | | CookieStorage.key_salt is changed. This partially reverts bcc9fa25285f506666fa5074fc43c7114d61bb79 to not break legacy hashes when key_salt is actually changed.
* Fixed #27604 -- Used the cookie signer to sign message cookies.Claude Paroz2020-02-041-12/+29
| | | | Co-authored-by: Craig Anderson <craiga@craiga.id.au>
* Refs #27604 -- Added CookieStorage.key_salt to allow customization.Claude Paroz2020-02-041-2/+2
|
* Refs #22426 -- Removed pre-Django 1.5 messages compatibility code and test.Claude Paroz2020-01-311-3/+0
| | | This reverts commit f286721f7fdc2202f77a5f4d650d9d0779b86811.
* Refs #26601 -- Removed obsolete workarounds for MIDDLEWARE_CLASSES setting.Sergey Fedoseev2019-10-231-2/+1
|
* Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU2019-10-011-2/+3
| | | | | | | | | 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.
* Removed duplicate words in various comments.Mariusz Felisiak2018-07-181-1/+1
|
* Fixed #27863 -- Added support for the SameSite cookie flag.Alex Gaynor2018-04-131-0/+1
| | | Thanks Alex Gaynor for contributing to the patch.
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-2/+1
|
* Fixed imports per isort 4.3.0.Mariusz Felisiak2018-02-011-1/+0
|
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-3/+4
|
* Fixed typo in MessageMiddleware.process_response() docstring.Joe Arthur2017-10-161-2/+1
|
* Refs #27857 -- Replaced json.loads() ValueError exception catching with ↵Tim Graham2017-09-251-1/+1
| | | | JSONDecodeError.
* Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham2017-09-071-2/+3
| | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
* Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen2017-06-281-3/+2
|
* Refs #27795 -- Replaced force_text() with str() in contrib.messagesClaude Paroz2017-05-101-16/+5
| | | | Thanks Tim Graham for the review.
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-1/+1
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan2017-02-049-59/+48
|
* Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis2017-01-261-1/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-255-6/+6
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-192-3/+3
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-2/+1
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #27688 -- Made messages' add_message() request check use ducktyping.Raffaele Salmaso2017-01-091-11/+15
|
* Replaced property() usage with decorator in several places.Berker Peksag2016-08-251-2/+2
|
* Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner2016-05-172-2/+4
| | | | | Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-082-6/+9
|
* 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
|
* Removed translations from contrib.messagesClaude Paroz2015-03-18170-2237/+0
| | | | | The only one translatable string will be handled in the core catalog. Forward port of 1bb712d79c8d0 from stable/1.8.x
* Moved contrib.messages tests out of contrib.Tim Graham2015-02-119-970/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-0611-25/+29
|
* Updated en translation catalogsClaude Paroz2015-01-171-2/+2
| | | | Forward port of 666c12e52 from stable/1.8.x