1
0
mirror of https://github.com/django/django.git synced 2025-04-07 23:16:46 +00:00

12401 Commits

Author SHA1 Message Date
Mariusz Felisiak
710af68dee [4.1.x] Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.
Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
Backport of 24effbceb871e71d3bc320b91252f743714722df from main
2022-07-19 09:45:39 +02:00
Stéphane "Twidi" Angel
a3d35af26a [4.1.x] Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle violation_error_message.
Regression in 667105877e6723c6985399803a364848891513cc.

Backport of ccbf714ebeff51d1370789e5e487a978d0e2dbfb from main
2022-07-08 08:57:21 +02:00
Simon Charette
585ed2f6d7 [4.1.x] Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() parameters.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 877c800f255ccaa7abde1fb944de45d1616f5cc9 from main
2022-07-06 09:10:41 +02:00
Mariusz Felisiak
14057603c7 [4.1.x] Fixed RelatedGeoModelTest.test08_defer_only() on MySQL 8+ with MyISAM storage engine.
Backport of 73766c118781a7f7052bf0a5fbee38b944964e31 from main
2022-07-05 19:06:03 +02:00
Shawn Dong
675d2239ce [4.1.x] Fixed #33822 -- Fixed save() crash on model formsets when not created by modelformset_factory().
Thanks Claude Paroz for the report.

Regression in e87f57fdb8dcdabc452bd15abd015bf6c9b1f7a8.

Backport of 18c5ba07cc81be993941ecc2ecc17923b401b66f from main
2022-07-05 08:18:09 +02:00
Mariusz Felisiak
284b188a41 [4.1.x] Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) against SQL injection.
Thanks Takuto Yoshikai (Aeye Security Lab) for the report.
2022-07-04 08:26:02 +02:00
Mariusz Felisiak
1757eda3a8 [4.1.x] Fixed GEOSTest.test_emptyCollections() on GEOS 3.8.0.
It's a regression in GEOS 3.8.0 fixed in GEOS 3.8.1.
Backport of 863aa7541d30247e7eb7a973ff68a7d36f16dc02 from main
2022-07-01 19:06:14 +02:00
Mariusz Felisiak
d38cd2677e [4.1.x] Fixed #33796 -- Fixed ordered combined queryset crash when used in subquery on PostgreSQL and MySQL.
Thanks Shai Berger for the report.

Regression in 30a01441347d5a2146af2944b29778fa0834d4be.

Backport of 44ffd8d06fabc07d8333f31439e8dd39ea87329b from main
2022-06-27 06:22:37 +02:00
Mariusz Felisiak
b37a4affcd [4.1.x] Fixed #33800 -- Fixed system check for the same template tag module in installed apps and template tag libraries.
Thanks Claude Paroz for the report.

Regression in 004b4620f6f4ad87261e149898940f2dcd5757ef.
Backport of 083bfca6b6c00d0f45837a65c2db721eaf46bc07 from main
2022-06-23 20:24:24 +02:00
DhruvaPatil98
531c96de34 [4.1.x] Fixed #33799, Refs #31685 -- Added parameters for updating conflicts to QuerySeta.abulk_create().
Backport of c627226d05dd52aef59447dcfb29cec2c2b11b8a from main
2022-06-23 12:16:41 +02:00
Claude Paroz
42e4b0e608 [4.1.x] Fixed #33794 -- Fixed string-casting of GIS queries on PostgreSQL.
Regression in 64c3f049ea3bcb1c82f35ae09f1dd5349a826a5c.

Backport of de74a74b4b889c986cabab837bb03e2113880afe from main
2022-06-21 10:32:34 +02:00
Abhinav Yadav
99e5ce96c6 [4.1.x] Fixed #33657 -- Allowed customizing formatter class of argument parsers.
Backport of 2887b9f67cadc5295ef6a0574de2c2c8fdd66905 from main
2022-06-20 17:35:35 +02:00
Zainab Amir
f741dd5fab [4.1.x] Fixed #23689 -- Made parsing HTTP Accept-Language header case-insensitive.
Thank you Daniel Samuels for test project.

Backport of 901a1691982cab76349d33e51b72c40120ec927a from main
2022-06-20 08:41:17 +02:00
David Wobrock
d44dc31fcb [4.1.x] Fixed #28897 -- Fixed QuerySet.update() on querysets ordered by annotations.
Backport of 3ef37a5245015f69a9b9f884ebc289a35d02c5f6 from main
2022-06-17 11:13:05 +02:00
David Wobrock
ccb243847e [4.1.x] Refs #28897 -- Added test for QuerySet.update() on querysets ordered by inline m2m annotation.
Backport of f4680a112d01d85540411673eade31f37712d0a6 from main
2022-06-17 11:12:59 +02:00
Carlton Gibson
0fb02522f9 [4.1.x] Updated asgiref dependency for 4.1 release series.
Backport of 2a2bde52f31e09e95ce616e8e6bc0ffeb68f76c9 from main
2022-06-16 12:17:15 +02:00
Bruce Cutler
a7f398ae59 [4.1.x] Fixed #33773 -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE.
Thanks to Simon Charette for locating where issue lay.

Backport of de1c8320cedee5d4f91b153a7fe82eb63876470f from main
2022-06-13 08:49:35 +02:00
David Wobrock
9fce76a237 [4.1.x] Fixed #31788 -- Fixed migration optimization after altering field to ManyToManyField.
This makes AddField() used for altering to ManyToManyField, dependent
on the prior RemoveField.
Backport of 798b6c23ee52c675dd0f0e233c50cddd7ff15657 from main
2022-06-02 12:11:06 +02:00
Mehrdad
2f974e3c1e [4.1.x] Refs #33697 -- Fixed multipart parsing of headers with double quotes and semicolons.
See 1ef0c0349e

Backport of 93cedc82f29076c824d476354527af1150888e4f from main
2022-06-01 10:38:59 +02:00
Jonas Lundberg
6df6c1b970 [4.1.x] Fixed #33754 -- Fixed crash with prematurely closed ASGI request body.
Regression in 441103a04d1d167dc870eaaf90e3fba974f67c93.

Backport of f1e0fc645bb0b2c15d1510c9a8501743297dec9d from main
2022-05-31 09:35:20 +02:00
Claude Paroz
000e8e0d38 [4.1.x] Fixed #33748 -- Fixed date template filter crash with lazy format.
Regression in 659d2421c7adbbcd205604002d521d82d6b0b465.

Backport of 292f372768836e2aebc713064c5139e8067eebcb from main
2022-05-31 07:03:53 +02:00
Marcelo Galigniana
0210dbcbe3 [4.1.x] Fixed #22078 -- Fixed crash of Feed with decorated methods.
Backport of 8c0886b068ba4e224dd78104b93c9638b860b398 from main.
2022-05-26 11:13:42 +02:00
Marcelo Galigniana
9d3b812001 [4.1.x] Refs #22078 -- Added syndication test for feeds with static methods.
Backport of 7e4656e4b2189390a433a149091442d53a777e2b from main.
2022-05-26 11:10:33 +02:00
David Wobrock
ae7aecc93e [4.1.x] Fixed #23740 -- Fixed removing unique_together constraint if exists primary key/unique constraint on the same field.
Backport of b949e40e8c32a393f480399e2d70b653108098b6 from main
2022-05-26 09:07:26 +02:00
Mariusz Felisiak
9fc56af0fb [4.1.x] Refs #33725 -- Replaced deprecated find_element_by_css_selector() with find_elements(By.CSS_SELECTOR, …).
Follow up to 90dcf271147693a8897f644c4c8943c5b73c02f8 and
2ccc0b22db6730ba0950b10bbc5238ae575e4a45.
Backport of 1733c888f4928e91889e4ae5baf6badbd073e08c from main
2022-05-23 06:07:28 +02:00
Sankalp
170793f0b0 [4.1.x] Fixed #33725 -- Made hidden quick filter in admin's navigation sidebar not focusable.
Regression in d915dd1c5809d7c2bb3679751cd5277571dcd9f7.

Follow up to 780473d75625d014cbe9b0acdea40b7a5970d5d8.

Backport of 90dcf271147693a8897f644c4c8943c5b73c02f8 from main
2022-05-21 14:36:02 +02:00
cheng
731bb6479e [4.1.x] Fixed #33653 -- Fixed template crash when calling methods for built-in types without required arguments.
Regression in 09341856ed9008875c1cc883dc0c287670131458.

Backport of 0dd29209091280ccf34e07c9468746c396b7778e from main
2022-05-20 08:41:16 +02:00
Mariusz Felisiak
2dd646e935 [4.1.x] Fixed #33719 -- Fixed test command crash when running in parallel.
Thanks Pēteris Caune for the report.

Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
Backport of 41c4cb253c137edf5a96b7408ea55d57d6e0602a from main
2022-05-19 10:21:39 +02:00
David Wobrock
820b4e565a [4.1.x] Fixed #33705 -- Fixed crash when using IsNull() lookup in filters.
Thanks Florian Apolloner for the report.
Thanks Simon Charette for the review.

Backport of 9f5548952906c6ea97200c016734b4f519520a64 from main
2022-05-19 07:52:44 +02:00
Mariusz Felisiak
fad2e59808 [4.1.x] Refs #33379 -- Fixed minimum supported version of MariaDB.
Backport of 2cec020f5bc462954d902bdad1a5955852cecff6 from main
2022-05-17 15:00:12 +02:00
David Smith
d126eba363 Refs #32339 -- Deprecated default.html form template.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-05-17 11:16:54 +02:00
Alokik Vijay
7f3cfaa12b Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs.
Moved the functionality of URLResolver._is_callback(),
URLResolver._callback_strs, URLPattern.lookup_str() to
django.contrib.admindocs.
2022-05-17 10:50:09 +02:00
David Wobrock
97f124f39e Refs #27064 -- Made migrations generate RenameIndex operations when moving indexes from index_together to Meta.indexes. 2022-05-17 07:21:36 +02:00
David Wobrock
c6cec3c2d2 Refs #27064 -- Made migrations generate RenameIndex operations when renaming Meta.indexes. 2022-05-16 17:46:24 +02:00
David Wobrock
11310e9abb Fixed #33710 -- Made RenameIndex operation a noop when the old and new name match. 2022-05-16 10:36:56 +02:00
Marcelo Galigniana
76af861356 Fixed #27550 -- Allowed GEOSGeometry.normalize() to return a normalized clone. 2022-05-16 06:46:53 +02:00
Mariusz Felisiak
d27e6b233f
Fixed #33681 -- Made Redis client pass CACHES["OPTIONS"] to a connection pool.
Thanks Ben Picolo for the report.
2022-05-16 06:17:40 +02:00
Nick Pope
d3677043fc Added backward compatibility test for ConnectionHandler.databases property.
The ConnectionHandler.databases property is no longer used within
Django, but it is maintained for backward compatibility with 3rd party
packages that have used this private API in the past.
2022-05-13 12:01:07 +02:00
Mariusz Felisiak
c112f837d4
Fixed #33704 -- Updated postgres_tests migrations. 2022-05-13 11:23:21 +02:00
David Wobrock
eacd4977f6 Refs #27064 -- Added RenameIndex migration operation. 2022-05-12 20:44:03 +02:00
Kapil Bansal
3a82b5f655 Fixed #32559 -- Added 'step_size’ to numeric form fields.
Co-authored-by: Jacob Rief <jacob.rief@uibk.ac.at>
2022-05-12 14:16:52 +02:00
Mariusz Felisiak
68da6b389c
Fixed #33543 -- Deprecated passing nulls_first/nulls_last=False to OrderBy and Expression.asc()/desc().
Thanks Allen Jonathan David for the initial patch.
2022-05-12 11:30:03 +02:00
Ed Rivas
2798c937de Fixed #29538 -- Fixed crash of ordering by related fields when Meta.ordering contains expressions.
Thanks Simon Charette for the review.
2022-05-12 07:19:16 +02:00
Carlton Gibson
34e2148fc7 Refs #33173 -- Removed use of deprecated cgi module.
https://peps.python.org/pep-0594/#cgi
2022-05-11 14:06:31 +02:00
Mariusz Felisiak
02dbf1667c
Fixed #33691 -- Deprecated django.contrib.auth.hashers.CryptPasswordHasher. 2022-05-11 09:13:45 +02:00
Marc Seguí Coll
262fde94de Fixed #33622 -- Allowed customizing error messages for invalid number of forms.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-05-10 13:42:31 +02:00
Gagaro
667105877e Fixed #30581 -- Added support for Meta.constraints validation.
Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
2022-05-10 11:22:23 +02:00
Mariusz Felisiak
439cd73c16
Refs #33173 -- Fixed test_dateparse tests on Python 3.11+.
date/datetime/time.fromisoformat() support any valid ISO 8601 format
in Python 3.11+, see https://github.com/python/cpython/issues/80010.
2022-05-09 10:38:11 +02:00
Daniel Hahler
dddc8bc47d Fixed #33679 -- Fixed the last inline's id in admin for users without add permissions. 2022-05-06 08:36:04 +02:00
David Smith
ec5659382a Fixed #32339 -- Added div.html form template. 2022-05-05 14:32:43 +02:00