1
0
mirror of https://github.com/django/django.git synced 2024-12-27 11:35:53 +00:00
django/django/utils
Mariusz Felisiak f200d83698 [4.2.x] Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n patterns are used.
Regression in 94e7f471c4.

This reverts commit 94e7f471c4
(refs #34069) and
partly reverts commit 3b4728310a.

Thanks Anthony Baillard for the report.

Co-Authored-By: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 0e444e84f8 from main
2023-05-02 06:33:23 +02:00
..
translation [4.2.x] Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n patterns are used. 2023-05-02 06:33:23 +02:00
__init__.py
_os.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
archive.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
asyncio.py Fixed #33735 -- Added async support to StreamingHttpResponse. 2022-12-22 10:41:12 +01:00
autoreload.py Refs #30213 -- Removed post-startup check for Watchman availability. 2022-08-11 11:02:03 +02:00
baseconv.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
cache.py [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
connection.py Made closing in connection handlers more DRY. 2022-05-12 15:13:51 +02:00
crypto.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
datastructures.py Fixed #33532 -- Optimized CaseInsensitiveMapping instantiation for dicts. 2022-02-23 20:15:22 +01:00
dateformat.py Simplified handling ambiguous/imaginary datetimes in django.utils.dateformat. 2023-01-05 12:55:28 +01:00
dateparse.py Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
dates.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
datetime_safe.py Used more augmented assignment statements. 2022-10-31 12:30:13 +01:00
deconstruct.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
decorators.py [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
deprecation.py Refs #34118 -- Adopted asgiref coroutine detection shims. 2022-12-20 11:10:48 +01:00
duration.py Used more augmented assignment statements. 2022-10-31 12:30:13 +01:00
encoding.py Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
feedgenerator.py Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
formats.py Simplified django.utils.formats.date_format()/time_format() calls. 2023-01-04 11:47:14 +01:00
functional.py Optimized lazy wrappers a bit. 2022-03-03 06:19:11 +01:00
hashable.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
html.py Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
http.py Fixed #34194 -- Added django.utils.http.content_disposition_header(). 2022-12-05 13:08:00 +01:00
inspect.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
ipv6.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
itercompat.py
jslex.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
log.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
lorem_ipsum.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
module_loading.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
numberformat.py [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
regex_helper.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
safestring.py Renamed wrapped functions to wrapper. 2022-05-25 10:53:52 +02:00
termcolors.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
text.py Fixed #34170 -- Implemented Heal The Breach (HTB) in GzipMiddleware. 2022-12-17 08:46:37 +01:00
timesince.py [4.2.x] Refs #34483 -- Fixed timesince()/timeuntil() with timezone-aware dates on different days and interval less than 1 day. 2023-04-14 17:42:33 +02:00
timezone.py Used more augmented assignment statements. 2022-10-31 12:30:13 +01:00
topological_sort.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
tree.py Refs #32948, Refs #32946 -- Used Q.create() internally for dynamic Q() objects. 2022-07-27 10:06:24 +02:00
version.py [4.2.x] Refs #34118 -- Fixed CustomChoicesTests.test_uuid_unsupported on Python 3.12+. 2023-04-05 13:59:55 +02:00
xmlutils.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00