3276 Commits

Author SHA1 Message Date
Sergey Fedoseev
c2a8a69b72 [2.2.x] Used 🎫 role in all tickets links.
Backport of abc51d44afcb8482c64c0bb8c1022f11e7eb2bbb from master.
2019-11-26 14:45:15 +01:00
Baptiste Mispelon
7873d3757d [2.2.x] Fixed #31031 -- Fixed data loss in admin changelist view when formset's prefix contains regex special chars.
Regression in b18650a2634890aa758abae2f33875daa13a9ba3.

Backport of 52936efacec4df05df2d9872c09c3332335bf21b from master
2019-11-26 09:19:39 +01:00
Hasan Ramezani
8a8ea93b98 [2.2.x] Fixed #30625 -- Doc'd cache.get()/delete() behavior change in Django 2.2.
Backport of f69b32782e21642c6184162d888fcc17dd1dd85e from master
2019-11-21 10:55:16 +01:00
Mariusz Felisiak
4082f078bc [2.2.x] Added stub release notes for 2.1.15.
Backport of e9def97d1095efed15a109d82fe0498ebd56fa04 from master
2019-11-19 12:45:04 +01:00
Mariusz Felisiak
622158b371 [2.2.x] Refs #29926 -- Doc'd Python 3.8 compatibility in Django 2.2.x.
Backport of b93a0e34d9b9b99d41103782b7e7aeabf47517e3 from master.
2019-11-12 22:15:27 +01:00
Mariusz Felisiak
90c730d963 [2.2.x] Added stub release notes for 2.2.8 release.
Backport of 30359496a3f3d9af0b02afc334710f7e24c74f5b from master
2019-11-12 14:42:34 +01:00
Mariusz Felisiak
6f26693cc8 [2.2.x] Added release dates for 2.2.7, 2.1.14, and 1.11.26.
Backport of 126cfefce2b59900138f2bf1ef6ad966cddc55d4 from master
2019-11-04 08:26:38 +01:00
Carlton Gibson
785d1706c4 [2.2.x] Fixed #30931 -- Restored ability to override Model.get_FIELD_display().
Thanks Sergey Fedoseev for the implementation idea.

Regression in a68ea231012434b522ce45c513d84add516afa60.

Backport of 2d38eb0ab9f78d68c083a5b78b1eca39027b279a from master
2019-11-04 08:17:50 +01:00
Hannes Ljungberg
7fe09e6d41 [2.2.x] Fixed #30903 -- Fixed migrations crash on PostgreSQL when adding Index with opclasses and ordering.
Backport of fa5f3291e7f2611d53e64ab481ebe951b0161791 from master
2019-10-24 09:53:33 +02:00
Mariusz Felisiak
d2f02aa56b [2.2.x] Fixed #30870 -- Fixed showing that RunPython operations are irreversible by migrate --plan.
Thanks Hasan Ramezani for the initial patch and Kyle Dickerson for the
report.

Backport of 06d34aab7cfb1632a1538a243db81f24498525ff from master.
2019-10-14 11:45:47 +02:00
Louise Grandjonc
323467e286 [2.2.x] Fixed #30826 -- Fixed crash of many JSONField lookups when one hand side is key transform.
Regression in 6c3dfba89215fc56fc27ef61829a6fff88be4abb.

Backport of 7d1bf29977bb368d7c28e7c6eb146db3b3009ae7 from master
2019-10-11 11:52:32 +02:00
Mariusz Felisiak
18df8484bd [2.2.x] Added stub release notes for 1.11.26 and 2.1.14.
Backport of 84322a29ce9b0940335f8ab3d60e55192bef1e50 from master
2019-10-02 07:56:02 +02:00
Carlton Gibson
c3302c7976 [2.2.x] Added stub release notes for 2.2.7.
Backport of e1c1eaf0c6f4d3d2f60513d20aa9b84b17d096ec from master
2019-10-01 10:45:07 +02:00
Carlton Gibson
e1a75db7d1 [2.2.x] Added release dates for 2.2.6, 2.1.13, and 1.11.25.
Backport of 3826aed46d7d4310c2ab6777a4f92165ca4d8d4f from master
2019-10-01 08:51:15 +02:00
Simon Charette
7806e45454 [2.2.x] Fixed #30769 -- Fixed a crash when filtering against a subquery JSON/HStoreField annotation.
This was a regression introduced by 7deeabc7c7526786df6894429ce89a9c4b614086
to address CVE-2019-14234.

Thanks Tim Kleinschmidt for the report and Mariusz for the tests.

Backport of 6c3dfba89215fc56fc27ef61829a6fff88be4abb from master
2019-09-16 08:53:31 +02:00
Mariusz Felisiak
e4fb132f43 [2.2.x] Added stub release notes for 1.11.25 and 2.1.13.
Backport of bd7e0f81f8590eadcb820c976ba03c9b75bbcad6 from master
2019-09-16 07:43:49 +02:00
Simon Charette
964dd4f4f2 [2.2.x] Fixed #30754 -- Prevented inclusion of aliases in partial index conditions.
SQLite doesn't repoint table aliases in partial index conditions on table
rename which breaks the documented table alteration procedure.

Thanks Pēteris Caune for the report.

Backport of 34decdebf157b6f05836009cc1967f74ee541fdf from master
2019-09-10 10:04:12 +02:00
Mariusz Felisiak
b71cabe459 [2.2.x] Added stub release notes for 2.2.6.
Backport of 0d4529d314f5b804c4e856146f6641a73027a2c4 from master
2019-09-04 08:06:12 +02:00
Mariusz Felisiak
4ed59db199 [2.2.x] Added release dates for 2.2.5, 2.1.12, and 1.11.24.
Backport of 47f49adc11c0d39be3f41f92becc1f606c49d8ce from master
2019-09-02 07:45:40 +02:00
Tom Forbes
6402855098 [2.2.x] Fixed #30500 -- Fixed race condition in loading URLconf module. 2019-08-27 20:09:30 +02:00
François Freitag
9b7c5a92ec [2.2.x] Fixed broken links and redirects in documentation.
Removed reference to custom builds, feature removed in
8e6b3bba99.
Backport of 9a88e43aeba6cc85ffb2a48a06c296ccf68e0d71 from master
2019-08-21 10:58:05 +02:00
zeyneloz
c2732e6839 [2.2.x] Fixed #30449 -- Fixed RelatedFieldListFilter/RelatedOnlyFieldListFilter to respect model's Meta.ordering.
Regression in 6d4e5feb79f7eabe8a0c7c4b87f25b1a7f87ca0b.

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 00035672a460b6eb5442d2837bc783f8af28c6f3 from master
2019-08-15 13:14:17 +02:00
Mariusz Felisiak
52a7759a49 [2.2.x] Fixed #30672 -- Fixed crash of JSONField/HStoreField key transforms on expressions with params.
Regression in 4f5b58f5cd3c57fee9972ab074f8dc6895d8f387.

Thanks Florian Apolloner for the report and helping with tests.

Backport of 1f8382d34d54061eddc41df6994e20ee38c60907 from master.
2019-08-14 15:29:13 +02:00
Adnan Umer
1265a26b2f [2.2.x] Fixed #30673 -- Relaxed system check for db_table collision when database routers are installed by turning the error into a warning.
Backport of 8d3519071ec001f763b70a3a1f98ae2e980bd552 from master.
2019-08-08 21:40:06 +02:00
Mariusz Felisiak
2c66f340bb [2.2.x] Added stub release notes for 2.2.5.
Backport of 1af469e67fd3928a4b01722d4706c066000014e9 from master
2019-08-03 11:28:47 +02:00
Carlton Gibson
68cc954ffb [2.2.x] Added CVE-2019-14235 to security release archive.
Backport of a5652eb795e896df0c0f2515201f35f9cd86b99b from master
2019-08-01 12:04:18 +02:00
Carlton Gibson
3bfa2f99d8 [2.2.x] Added CVE-2019-14234 to security release archive.
Backport of 3a6a2f5eaf74200a9591a6311fdb0ea78ee305ee from master
2019-08-01 12:04:06 +02:00
Carlton Gibson
859d1d1cb0 [2.2.x] Added CVE-2019-14233 to security release archive.
Backport of 9600f63885d2d240f85d59bff6acbe200f890298 from master
2019-08-01 12:03:53 +02:00
Carlton Gibson
928d596886 [2.2.x] Added CVE-2019-14232 to the security release archive.
Backport of 87750787d1e464b7143f366d9485ba20fefc9c94 from master
2019-08-01 12:03:34 +02:00
Florian Apolloner
cf694e6852 [2.2.x] Fixed CVE-2019-14235 -- Fixed potential memory exhaustion in django.utils.encoding.uri_to_iri().
Thanks to Guido Vranken for initial report.
2019-07-29 11:06:54 +02:00
Mariusz Felisiak
4f5b58f5cd [2.2.x] Fixed CVE-2019-14234 -- Protected JSONField/HStoreField key and index lookups against SQL injection.
Thanks to Sage M. Abdullah for the report and initial patch.
Thanks Florian Apolloner for reviews.
2019-07-29 11:06:54 +02:00
Florian Apolloner
e34f3c0e9e [2.2.x] Fixed CVE-2019-14233 -- Prevented excessive HTMLParser recursion in strip_tags() when handling incomplete HTML entities.
Thanks to Guido Vranken for initial report.
2019-07-29 11:06:54 +02:00
Florian Apolloner
c3289717c6 [2.2.X] Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when truncating HTML.
Thanks to Guido Vranken for initial report.
2019-07-29 11:00:01 +02:00
Carlton Gibson
ea57c8a345 [2.2.x] Added stub release notes for security releases.
Backport of f13147c8de725eed7038941758469aeb9bd66503 from master
2019-07-25 10:50:18 +02:00
Tom Forbes
4d6449e125 [2.2.x] Fixed #30647 -- Fixed crash of autoreloader when extra directory cannot be resolved.
Backport of fc75694257b5bceab82713f84fe5a1b23d641c3f from master.
2019-07-24 14:38:24 +02:00
Tom Forbes
2d2859bec2 [2.2.x] Fixed #30506 -- Fixed crash of autoreloader when path contains null characters.
Backport of 2ff517ccb6116c1be6338e6bdcf08a313defc5c7 from master.
2019-07-23 10:41:50 +02:00
Mariusz Felisiak
1088a9777d [2.2.x] Fixed #30621 -- Fixed crash of __contains lookup for Date/DateTimeRangeField when the right hand side is the same type.
Thanks Tilman Koschnick for the report and initial patch.
Thanks Carlton Gibson for the review.

Regression in 6b048b364ca1e0e56a0d3815bf2be33ac9998355.
Backport of 7991111af12056ec9a856f35935d273526338c1f from master
2019-07-10 10:34:49 +02:00
Simon Charette
9dee8515d6 [2.2.x] Fixed #30628 -- Adjusted expression identity to differentiate bound fields.
Expressions referring to different bound fields should not be
considered equal.

Thanks Julien Enselme for the detailed report.

Regression in bc7e288ca9554ac1a0a19941302dea19df1acd21.

Backport of ee6e93ec8727d0f5ed33190a3c354867669ed72f from master
2019-07-10 08:04:45 +02:00
Mariusz Felisiak
b593c39d7f [2.2.x] Added stub release notes for 2.2.4.
Backport of 08e69cad9ccb18738b66388b0d0ee4660470710e from master
2019-07-09 07:45:27 +02:00
Mariusz Felisiak
2b533ae60e [2.2.x] Added CVE-2019-12781 to the security release archive.
Backport of 868cd56f058ca203419ad0886353173b74c3bcf1 from master
2019-07-01 10:21:16 +02:00
Mariusz Felisiak
4f2713ff0e [2.2.x] Added release date for 2.2.3.
Backport of fc41401f33045d2015dd92e735a13e5ee4af3afd from master
2019-07-01 07:51:53 +02:00
Carlton Gibson
77706a3e47 [2.2.x] Fixed CVE-2019-12781 -- Made HttpRequest always trust SECURE_PROXY_SSL_HEADER if set.
An HTTP request would not be redirected to HTTPS when the
SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings were used if
the proxy connected to Django via HTTPS.

HttpRequest.scheme will now always trust the SECURE_PROXY_SSL_HEADER if
set, rather than falling back to the request scheme when the
SECURE_PROXY_SSL_HEADER did not have the secure value.

Thanks to Gavin Wahl for the report and initial patch suggestion, and
Shai Berger for review.

Backport of 54d0f5e62f54c29a12dd96f44bacd810cbe03ac8 from master
2019-07-01 07:50:48 +02:00
Mariusz Felisiak
db9f7b44fc [2.2.x] Added stub release notes for security releases.
Backport of 30b3ee9d0b33bb440f9c73d1ce9e0e7303887a9f from master
2019-07-01 07:03:03 +02:00
Claude Paroz
b3f7262e6e [2.2.x] Updated translations from Transifex 2019-06-29 16:15:53 +02:00
Tom Forbes
bdc1de2199 [2.2.x] Fixed #30588 -- Fixed crash of autoreloader when __main__ module doesn't have __file__ attribute.
Backport of 8454f6dea49dddb821bfcb7569ea222bb487dfd1 from master
2019-06-26 06:44:57 +02:00
Jon Dufresne
e6b2471ce7 [2.2.x] Fixed typos in 1.11.19, 2.0.11, 2.1.6 release notes.
Backport of 2ef6f209f79b0bd27d53405f0d46bb9ab82b2a52 from master
2019-06-21 07:10:32 +02:00
Étienne Beaulé
4e6f0024f1 [2.2.x] Fixed #30542 -- Fixed crash of numerical aggregations with filter.
Filters in annotations crashed when used with numerical-type
aggregations (i.e. Avg, StdDev, and Variance). This was caused as the
source expressions no not necessarily have an output_field (such as the
filter field), which lead to an AttributeError: 'WhereNode' object has
no attribute output_field.

Thanks to Chuan-Zheng Lee for the report.

Regression in c690afb873cac8035a3cb3be7c597a5ff0e4b261 and two following
commits.

Backport of 4b6dfe16226a81fea464ac5f77942f4d6ba266e8 from master.
2019-06-05 09:15:21 +02:00
Mariusz Felisiak
ca3f86288a [2.2.x] Added stub release notes for 2.2.3.
Backport of 1f81e2df69c0f62f9bd85bca5b3876a2d8229fde from master
2019-06-05 06:58:53 +02:00
Nick Pope
ed3dc5119b [2.2.x] Added CVE-2019-12308 to the security release archive.
Backport of 21b1d239125f1228e579b1ce8d94d4d5feadd2a6 from master
2019-06-03 21:45:58 +02:00
Nick Pope
162e02b5e4 [2.2.x] Added CVE-2019-11358 to the security release archive.
Backport of 8fb0ea55830321852a4a051a478f78e24d4f6889 from master
2019-06-03 21:45:41 +02:00