1
0
mirror of https://github.com/django/django.git synced 2025-01-15 12:52:31 +00:00

13230 Commits

Author SHA1 Message Date
Mariusz Felisiak
21b1b1fc03 [4.2.x] Fixed CVE-2023-31047, Fixed #31710 -- Prevented potential bypass of validation when uploading multiple files using one form field.
Thanks Moataz Al-Sharida and nawaik for reports.

Co-authored-by: Shai Berger <shai@platonix.com>
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
2023-05-03 13:43:16 +02:00
Mariusz Felisiak
290fd5ecec [4.2.x] Fixed #34529, Refs #34525 -- Reduced index operations with Meta.indexes/index_together when optimizing migrations.
This makes squashing migrations an available path for changing
Meta.index_together, which is deprecated, to Meta.indexes.

Follow up to f81032572107846922745b68d5b7191058fdd5f5.

Backport of 8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb from main.
2023-05-03 13:09:49 +02:00
Ran Benita
4c68482c3e [4.2.x] Fixed #34530 -- Improved docs when customizing storage for FileField.
Backport of 506f93f0c37ed9c44069edeab8baa66da5f7e03a from main
2023-05-02 15:50:12 -03:00
Mariusz Felisiak
f200d83698 [4.2.x] Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n patterns are used.
Regression in 94e7f471c4edef845a4fe5e3160132997b4cca81.

This reverts commit 94e7f471c4edef845a4fe5e3160132997b4cca81
(refs #34069) and
partly reverts commit 3b4728310a7a64f8fcc548163b0aa5f98a5c78f5.

Thanks Anthony Baillard for the report.

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

Backport of 0e444e84f87d174713a2aef0c4f9704ce2865586 from main
2023-05-02 06:33:23 +02:00
Mariusz Felisiak
4f343a10f7 [4.2.x] Refs #34118, Refs #34504 -- Added backward incompatibility note about EmailBackend.ssl_context.
Follow up to 2848e5d0ce5cf3c31fe87525536093b21d570f69.
Backport of 5a6d4d3bfde07daab9777545694beb014c832264 from main
2023-04-28 13:04:39 +02:00
Andrei Shabanski
88f23b6b81 [4.2.x] Refs #33662 -- Corrected Sitemap.get_languages_for_item() signature in docs.
Backport of 5c456a879300e5f51010d3f6aa7449302413efed from main
2023-04-27 19:54:18 +02:00
Tom Forbes
01779cdcef [4.2.x] Doc'd that Count("*") is equivalent to COUNT(*) SQL.
Backport of 23d24f82a7450ef5d369845e18cc0130be5bac6c from main
2023-04-27 11:54:26 +02:00
Mariusz Felisiak
28d4282703 [4.2.x] Added stub release notes and release date for 4.2.1, 4.1.9, and 3.2.19.
Backport of 18a7f2c711529f8e43c36190a5e2479f13899749 from main
2023-04-26 08:50:20 +02:00
Mariusz Felisiak
fffbf85080 [4.2.x] Fixed #34512 -- Restored breadcrumbs on admin app index view.
Thanks Adam (ataylor32) for the report.

Regression in 872b61193b013a700ff88cf50f0eb2cf2c266ff7.
Backport of 9440f6ba41e5e96458cd7949fc6d605ef5bd09e9 from main
2023-04-26 08:37:30 +02:00
Claude Paroz
9ab8067229 [4.2.x] Updated Django Transifex links.
Subdomain was changed on April 3rd and redirects will stop on July 2023.
Backport of 3fe0c609cf6d50e45e1246492ebac02660561177 from main
2023-04-22 16:19:12 +02:00
Mariusz Felisiak
0a805cf42d [4.2.x] Fixed #34506 -- Fixed margin of ClearableFileInput in admin CSS.
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
Backport of 92537e83c1322c40dd39a8f0f9c78018307f2102 from main
2023-04-21 19:50:21 +02:00
Mariusz Felisiak
a4f7d935a2 [4.2.x] Added meaningful titles to ..admonition:: directives.
Backport of c487634c106888effbba680e02269e489ab911a6 from main
2023-04-21 12:04:21 +02:00
Mariusz Felisiak
d1eb9b2994 [4.2.x] Improved examples in docs about raw SQL queries.
Regression in 14459f80ee3a9e005989db37c26fd13bb6d2fab2.
Backport of 498195bda492d09ed00d05ab268cad4b8e5c9f21 from main
2023-04-20 12:25:02 +02:00
David Sanders
9967faab0b [4.2.x] Fixed #34440 -- Doc'd that & queryset operator works similar to chaining.
Backport of 0494efddc422716431b92896899284b6afebb23a from main
2023-04-20 09:12:03 +02:00
Sage Abdullah
f80dbcf7dc [4.2.x] Fixed #34435 -- Doc'd that JSONField.default must be a callable.
Backport of 01ae9d4ca9afdaf30a247e10e8333261a7d8224c from main
2023-04-19 21:53:04 +02:00
Sarah Boyce
df44c7b3cc [4.2.x] Doc'd RemovedInDjangoXXWarning comments in deprecating a feature guide.
Backport of 1611a3af1cf18256db389f259a020414ec1226b4 from main
2023-04-19 08:52:18 -03:00
Tim Graham
7679741c46 [4.2.x] Added Snowflake to list of third-party DB backends.
Backport of 57f2b935b34d148c3c0d906fc8256765004b7b77 from main
2023-04-17 07:44:37 +02:00
Tim Graham
26f181939e [4.2.x] Used extlinks for PyPI links.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 2c4dc6476083c853b654e462c7ff65dbe0334c9e from main
2023-04-17 07:44:29 +02:00
Edison Wang
5094013134 [4.2.x] Fixed #34419 -- Doc'd django.contrib.admin.sites.all_sites.
Backport of 255f5345904854128647705adcb8d21138e87c63 from main
2023-04-15 08:29:24 +02:00
Scott Macpherson
090d5ccc6c [4.2.x] Fixed #34486 -- Fixed DatabaseOperations.compose_sql() crash with no existing database connection on PostgreSQL.
Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.

Backport of 53aee470d5b35e2708864d5221d2b5655e10c091 from main
2023-04-14 11:02:47 +02:00
nessita
a3c14ea61b [4.2.x] Fixed #34483 -- Fixed timesince()/timeuntil() with timezone-aware dates and interval less than 1 day.
Regression in 8d67e16493c903adc9d049141028bc0fff43f8c8.

Thanks Lorenzo Peña for the report.

Backport of 813015d67e2557fa859a07930a9becec4e5f64a0 from main
2023-04-13 13:20:16 -03:00
Mariusz Felisiak
791407fef1 [4.2.x] Refs #34482 -- Reverted "Fixed #32969 -- Fixed pickling HttpResponse and subclasses."
This reverts commit d7f5bfd241666c0a76e90208da1e9ef81aec44db.

Thanks Márton Salomváry for the report.

Backport of 173034b00589c083793d495e8b07e35be2cb1cf0 from main
2023-04-12 18:53:29 +02:00
Mariusz Felisiak
2feb9333e7 [4.2.x] Fixed #34484, Refs #34482 -- Reverted "Fixed #29186 -- Fixed pickling HttpRequest and subclasses."
This reverts commit 6220c445c40a6a7f4d442de8bde2628346153963.

Thanks Adam Johnson and Márton Salomváry for reports.

Backport of 280ca147af9cdfce1ca9cb14cc3c5527ff6c7a02 from main
2023-04-12 18:53:22 +02:00
sarahboyce
facc153af7 [4.2.x] Fixed #34455 -- Restored i18n_patterns() respect of prefix_default_language argument when fallback language is used.
Regression in 94e7f471c4edef845a4fe5e3160132997b4cca81.

Thanks Oussama Jarrousse for the report.

Backport of 3b4728310a7a64f8fcc548163b0aa5f98a5c78f5 from main
2023-04-10 15:35:28 +02:00
Mariusz Felisiak
b0d7753d07 [4.2.x] Fixed #34470 -- Enforced UTF-8 encoding on PostgreSQL.
Regression in 6a2165816394ab4bb259f6171e82417e098e97a6.
Backport of 5b8a043bf51ab8bcf4a758d0b4646f30a84be183 from main
2023-04-07 10:12:19 +02:00
Anders Kaseorg
0bc2bbf041 [4.2.x] Fixed #34466 -- Reallowed setting cursor_factory in DATABASES["options"] on PostgreSQL.
Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.

Backport of 73cbb372baa45d1fdafd571e2f430a980831f722 from main
2023-04-07 09:21:54 +02:00
Simon Charette
511dc3db53 [4.2.x] Fixed #34464 -- Fixed queryset aggregation over group by reference.
Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7.

Refs #28477.

Thanks Ian Cubitt for the report.

Backport of 9daf8b4109c3e133eb57349bb44d73cc60c5773c from main
2023-04-07 06:58:24 +02:00
Rishi Joshi
4d6a92749c [4.2.x] Fixed typos in docs/faq/contributing.txt.
Backport of 1c7aed71ec70d4ef0c2cae6de9cee844d03e7054 from main
2023-04-06 21:40:35 +02:00
Mariusz Felisiak
db49def5fc [4.2.x] Fixed #34459 -- Fixed SearchVector() crash for parameters with % symbol.
Thanks Patryk Zawadzki for the report.

Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.

Backport of 4bf4222010fd8e413963c6c873e4088614332ef9 from main
2023-04-06 13:33:13 +02:00
Yahya Ali
e68da20596 [4.2.x] Fixed #34463 -- Corrected code-block directives in docs.
Thanks ExTexan for the report.
Backport of 263db8af469f0f3a5bd8ddc4a7dd0154c3d1fbca from main
2023-04-06 13:08:44 +02:00
Sarah Boyce
e34a54a36e [4.2.x] Refs #34028 -- Doc'd that get_script_prefix() cannot be used outside of the request-response cycle.
Backport of bdf59bff657975e577b86b194b39ec2f77983d2b from main
2023-04-06 13:02:00 +02:00
Mariusz Felisiak
05d6efa958 [4.2.x] Added release date for 4.1.8.
Backport of fdf0a367bdd72c70f91fb3aed77dabbe9dcef69f from main
2023-04-05 06:19:12 +02:00
Simon Charette
647920b766 [4.2.x] Fixed #34458 -- Fixed QuerySet.defer() crash on attribute names.
Thanks Andrew Cordery for the report.

Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879.

Backport of 87c63bd8df0eb0109df333df1264c6a96707d6a4 from main
2023-04-05 06:06:03 +02:00
David Sanders
272dc386c2 [4.2.x] Refs #34434 -- Added note about breaking changes in psycopg version 3 to release notes.
Backport of ff9ceed32b880733d94190742e45dbcf5927b161 from main
2023-04-04 17:07:08 +02:00
Mariusz Felisiak
42b362e081 [4.2.x] Updated release process for 2.0+ release numbering and latest practices.
Backport of 073b5fd40035759afaebe5c77de5269aee851643 from main
2023-04-04 07:28:42 +02:00
Mariusz Felisiak
439d1c59f2 [4.2.x] Added stub release notes for 4.2.1.
Backport of 4e4eda6d6c8a5867dafd2ba9167ad8c064bb644a from main
2023-04-03 11:20:47 +02:00
Mariusz Felisiak
60018238c8 [4.2.x] Finalized release notes for Django 4.2.
Backport of 8adbab49e116c31619ca38061cb2e74a1a1ec85a from main
2023-04-03 09:03:00 +02:00
Mariusz Felisiak
3e497de412 [4.2.x] Updated man page for Django 4.2 final. 2023-04-03 08:56:48 +02:00
Edison Wang
9ef2625cd5 [4.2.x] Fixed #34431 -- Improved Date/DateTimeField/TimeField.input_formats docs.
Backport of cbcc1240e912cfc47cb6ea0c4fe6b4a48f36f7e2 from main
2023-04-03 08:15:10 +02:00
JiriKr
634acb5180 [4.2.x] Fixed #34446 -- Removed unneeded and incorrect example in coding style docs.
Backport of cfe563ffaf01d22343717176d96bfca0d05f60fb from main
2023-03-30 11:41:32 +02:00
Mariusz Felisiak
870067e578 [4.2.x] Fixed typos in docs/ref/forms/renderers.txt.
Backport of 659f6b5bc5d68661a071f0cd13b8dab678067023 from main
2023-03-24 12:55:15 +01:00
Carlton Gibson
35ffaf77c2 [4.2.x] Added Django Forum to mailing lists page.
Backport of d33368b4ab6ae0c01e83d525f7e1655156a640d1 from main
2023-03-24 08:58:45 +01:00
Jesper Olsson
b0b769769e [4.2.x] Fixed #34409 -- Doc'd limitation of dictfetchall() and namedtuplefetchall() examples.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Backport of 216eb63883050f6a3bf5d306e42972e7a6b6dff5 from main
2023-03-22 19:23:26 +01:00
Carlton Gibson
d118cbb1ed [4.2.x] Doc'd use of asgiref.sync adapters with sensitive variables.
Backport of 6087bc4e15e89d968396807f8485f4b5624c4f03 from main.
2023-03-22 16:24:56 +01:00
amirsoroush
e4fad1372d [4.2.x] Fixed typo in docs/topics/class-based-views/mixins.txt.
Backport of 6087bc4e15e89d968396807f8485f4b5624c4f03 from main
2023-03-22 09:56:06 +01:00
Mariusz Felisiak
f2923306f1 [4.2.x] Fixed #34322 -- Made ES module support to ManifestStaticFilesStorage optional.
Co-authored-by: Author: Claude Paroz <claude@2xlibre.net>
Backport of e10c1688f96e3b2d202fe401472b7b25f6105969 from main
2023-03-18 14:06:09 +01:00
Ayush Bisht
eff2ba3f8d [4.2.x] Fixed #34404 -- Clarified how FileResponse set Content-Type header.
Backport of fc266b694b9129e44b597d8a56927ee13fdac358 from main
2023-03-16 08:31:23 +01:00
Adam Johnson
a0f46ea7e8 [4.2.x] Corrected example in CreateCollation() docs.
Backport of 4db33e96d1b5b4ba1a739e15b28835495f78eee4 from main
2023-03-12 15:03:07 +01:00
Mariusz Felisiak
2e57dc490b [4.2.x] Doc'd that action descriptions are %-formatted.
Co-authored-by: JD Bothma <jbothma@gmail.com>

Backport of cc67344db9de0248ba1064f7e986c6b29276a7b1 from main
2023-03-09 15:44:40 +01:00
Mariusz Felisiak
87a55e0b51 [4.2.x] Fixed #34395 -- Updated admin's jQuery to 3.6.4.
Backport of 18473004afd82a616ba6c9ac22f476347fde4846 from main
2023-03-09 08:55:34 +01:00