Mohammed Y. Alnajdi
51de294d77
[4.1.x] Fixed #33727 -- Fixed color contrasts in admin header.
...
Backport of 78bf1565c37d0eef2ff9dd72a2cead0b772b2444 from main
2022-05-21 13:13:31 +02:00
Burak Kadir Er
701d78c95c
[4.1.x] Fixed #33721 -- Added DE-9IM link in GEOS docs.
...
Backport of 1be9585d73c50df733eb4d1484651bb8548a1205 from main
2022-05-20 16:47:40 +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
Tom Sparrow
33552c7a13
[4.1.x] Removed unnecessary semicolons in docs about performing raw SQL.
...
Backport of e89f9571352f42c7752b351ba1e651485e5e7c51 from main
2022-05-19 10:39:14 +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
Simon Willison
aa3197e5f1
[4.1.x] Refs #33646 -- Fixed link markup in queries topic doc.
...
Backport of 4525d689e9ad4667e1798004c25053966c73c2d2 from main
2022-05-18 17:41:34 +02:00
Joachim Jablon
daf83303d1
[4.1.x] Refs #30581 -- Updated count of steps in model validation docs.
...
Follow-up to 667105877e6723c6985399803a364848891513cc.
Backport of ce7321932d07b7bf9e6be77b9865c5058d9c1e4d from main
2022-05-18 11:39:06 +02:00
Carlton Gibson
ac6410ec07
[4.1.x] Bumped version for 4.1 alpha 1 release.
4.1a1
2022-05-17 15:05: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
Mariusz Felisiak
d1f1a0168a
[4.1.x] Updated source translation catalogs.
2022-05-17 14:13:35 +02:00
Carlton Gibson
2a5cfe8a2c
[4.1.x] Bumped django_next_version in docs config.
2022-05-17 12:12:54 +02:00
Carlton Gibson
5325a6344c
Updated man page for Django 4.1 alpha.
2022-05-17 11:21:08 +02:00
Carlton Gibson
d6e3756946
Removed empty sections from 4.1 release notes.
2022-05-17 11:21:08 +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
6af8673255
Update docs/releases/4.1.txt
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-05-17 10:50:09 +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
Collin Anderson
2a5d2eefc7
Fixed #33683 -- Document HttpResponseBase and allow import from django.http
2022-05-17 09:51:16 +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
a098cde968
Refs #27064 -- Refactored out MigrationAutodetector.create_renamed_fields().
2022-05-17 06:20:01 +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
Mariusz Felisiak
647480166b
Refs #33685 -- Doc'd that using PostgreSQL's service names for testing purposes is not supported.
2022-05-16 09:32:40 +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
非法操作
19dc3f0f96
Fixed typo in Query.clone()'s docstring.
2022-05-13 06:56:20 +02:00
David Wobrock
eacd4977f6
Refs #27064 -- Added RenameIndex migration operation.
2022-05-12 20:44:03 +02:00
Nick Pope
20e65a34ae
Made closing in connection handlers more DRY.
2022-05-12 15:13:51 +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
441103a04d
Refs #33173 , Refs #30451 -- Fixed ResourceWarning from unclosed body files in ASGI handler on Python 3.11+.
2022-05-10 09:57:28 +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
Nikita Sobolev
21d8ea4eb3
Corrected extract_views_from_urlpatterns()'s docstring.
2022-05-06 09:50:46 +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
Ali Toosi
faab9e6769
Fixed #33680 -- Corrected example of customizing model loading in docs.
2022-05-06 06:42:03 +02:00
David Smith
ec5659382a
Fixed #32339 -- Added div.html form template.
2022-05-05 14:32:43 +02:00
Mariusz Felisiak
27b07a3246
Refs #30581 -- Moved CheckConstraint tests for conditional expressions to migrations.test_operations.
...
This allows avoiding warning in tests about using RawSQL in
CheckConstraints.
2022-05-05 06:44:34 +02:00
Stefan Brand
c5cc750b56
Corrected example in Polygon docstring.
2022-05-04 17:31:42 +02:00
David Wobrock
8f04473af1
Fixed #25105 -- Checked deferred constraints before updating rows on PostgreSQL.
2022-05-04 12:15:00 +02:00
Carlton Gibson
fde946daff
Refs #32339 -- Restructured outputting HTML form docs.
...
In the topic doc, promoted the Reusable form templates section.
In the reference, re-grouped and promoted the default __str__()
rendering path, and then gathered the various as_*() helpers
subsequently.
Thanks to David Smith for review.
2022-05-04 11:52:48 +02:00
Gagaro
5d91dc8ee3
Refs #30581 -- Added Q.check() hook.
2022-05-04 08:47:52 +02:00
Simon Charette
1109e66990
Refs #33646 -- Reduced sync_to_async hops on async QuerySet iteration.
...
Until we add support for truly asynchronous database backends it's
actually detrimental to have complete set retrieval require multiple
hops between sync and async emulated contexts via asgiref.
By defaulting to sending the whole sync _fetch_all() to the current
context thread pool we reduce unncessary work when dealing with large
result sets since the queryset cannot be iterated anyway before all
results are retrieved and cached.
2022-05-04 08:31:59 +02:00
Mariusz Felisiak
37470bbd90
Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.
2022-05-04 06:28:51 +02:00