Ronnie van den Crommenacker
c32858a8ce
Fixed #33565 -- Improved locale format validation for the makemessages command.
2022-06-08 16:17:12 +02:00
Mehrdad
49b470b918
Refs #33697 -- Made MultiPartParser use django.utils.http.parse_header_parameters() for parsing Content-Type header.
2022-06-03 21:37:29 +02:00
Swann
d0863429a3
Fixed documentation of Widget.id_for_label() empty return value.
2022-06-03 12:19:47 +02:00
Ciaran McCormick
286e7d076c
Fixed #33764 -- Deprecated BaseUserManager.make_random_password().
2022-06-03 07:30:57 +02:00
Anders Kaseorg
fbac2a4dd8
Fixed #33700 -- Skipped extra resolution for successful requests not ending with /.
...
By moving a should_redirect_with_slash call out of an if block, commit
9390da7fb6
negated the performance fix
of commit 434d309ef6
(#24720 ).
Meanwhile, the logging issue #26293 that it targeted was subsequently
fixed more fully by commit 40b69607c7
(#26504 ), so it is no longer needed. This effectively reverts it.
This speeds up successful requests not ending with / when APPEND_SLASH
is enabled (the default, and still useful in projects with a mix of
URLs with and without trailing /). The amount of speedup varies from
about 5% in a typical project to nearly 50% on a benchmark with many
routes.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-06-02 15:15:04 +02:00
David Wobrock
798b6c23ee
Fixed #31788 -- Fixed migration optimization after altering field to ManyToManyField.
...
This makes AddField() used for altering to ManyToManyField, dependent
on the prior RemoveField.
2022-06-02 12:10:27 +02:00
Samir Shah
6f73eb9d90
Fixed #33742 -- Added id to GeoJSON serializer.
2022-06-01 19:11:26 +02:00
Florian Demmer
f3e2bb0833
Fixed #33750 -- Fixed timezone warning alignment with help texts.
...
Previously help_text was wrapped in a paragraph, but the change to div
broke the alignment, refs #27207 .
2022-06-01 11:41:15 +02:00
kshivakumar
46efd03d26
Fixed #33733 -- Preserved wrapper assignment for manager methods.
2022-06-01 10:44:34 +02:00
Mehrdad
93cedc82f2
Refs #33697 -- Fixed multipart parsing of headers with double quotes and semicolons.
...
See 1ef0c0349e
2022-06-01 10:11:07 +02:00
Anv3sh
295249c901
Fixed #32234 -- Made inspectdb inform about composite primary keys.
2022-06-01 08:40:44 +02:00
Allen Jonathan David
1058fc7023
Fixed #33191 -- Avoided clearing cached reference when saving child after parent.
...
Thanks Barry Johnson for the report.
2022-05-31 10:19:54 +02:00
Jonas Lundberg
f1e0fc645b
Fixed #33754 -- Fixed crash with prematurely closed ASGI request body.
...
Regression in 441103a04d
.
2022-05-31 08:38:00 +02:00
Claude Paroz
292f372768
Fixed #33748 -- Fixed date template filter crash with lazy format.
...
Regression in 659d2421c7
.
2022-05-31 06:09:39 +02:00
Marcelo Galigniana
8c0886b068
Fixed #22078 -- Fixed crash of Feed with decorated methods.
2022-05-26 10:39:51 +02:00
David Wobrock
b949e40e8c
Fixed #23740 -- Fixed removing unique_together constraint if exists primary key/unique constraint on the same field.
2022-05-26 08:33:07 +02:00
David Wobrock
115a978fce
Refs #23740 -- Added BaseDatabaseSchemaEditor._unique_constraint_name().
2022-05-26 07:31:24 +02:00
Aymeric Augustin
8cf4de206c
Normalized decorator style for functools.wraps.
2022-05-25 10:58:48 +02:00
Aymeric Augustin
aff649a3bd
Normalized imports of functools.wraps.
...
@wraps is 10 times more common than @functools.wraps. Standardize to
the most common version.
2022-05-25 10:58:28 +02:00
Aymeric Augustin
6485894157
Renamed wrapped functions to wrapper.
...
All these functions are wrapping another function. They're the wrapper,
while the function they're wrapping is the wrapped.
2022-05-25 10:53:52 +02:00
Sankalp
90dcf27114
Fixed #33725 -- Made hidden quick filter in admin's navigation sidebar not focusable.
...
Regression in d915dd1c58
.
Follow up to 780473d756
.
2022-05-21 13:37:53 +02:00
Mohammed Y. Alnajdi
78bf1565c3
Fixed #33727 -- Fixed color contrasts in admin header.
2022-05-21 12:35:10 +02:00
cheng
0dd2920909
Fixed #33653 -- Fixed template crash when calling methods for built-in types without required arguments.
...
Regression in 09341856ed
.
2022-05-20 07:53:05 +02:00
Hasan Ramezani
1a78ef2b85
Fixed #33715 -- Allowed keyboard interrupt to abort queries in MySQL dbshell.
2022-05-20 07:11:51 +02:00
Mariusz Felisiak
41c4cb253c
Fixed #33719 -- Fixed test command crash when running in parallel.
...
Thanks Pēteris Caune for the report.
Regression in 3b3f38b3b0
.
2022-05-19 10:20:51 +02:00
Mariusz Felisiak
981c23c0cc
Fixed #33717 -- Dropped support for PostgreSQL 11.
2022-05-19 09:26:48 +02:00
David Wobrock
9f55489529
Fixed #33705 -- Fixed crash when using IsNull() lookup in filters.
...
Thanks Florian Apolloner for the report.
Thanks Simon Charette for the review.
2022-05-19 07:02:22 +02:00
Mariusz Felisiak
19297de2fe
Fixed #33713 -- Dropped support for MariaDB 10.3.
2022-05-18 08:38:08 +02:00
Mariusz Felisiak
2cec020f5b
Refs #33379 -- Fixed minimum supported version of MariaDB.
2022-05-17 14:59:28 +02:00
Carlton Gibson
3c6f1fd1f8
Increased the default PBKDF2 iterations for Django 4.2.
2022-05-17 14:22:06 +02:00
Carlton Gibson
cdb2f7f36c
Advanced deprecation warnings for Django 4.2.
2022-05-17 14:22:06 +02:00
Carlton Gibson
ff8e5eacda
Bumped version; main is now 4.2 pre-alpha.
2022-05-17 14:22:06 +02:00
Mariusz Felisiak
4286378a08
Updated source translation catalogs.
...
Forward port of d1f1a0168a
from
stable/4.1.x.
2022-05-17 14:17:07 +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
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
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
非法操作
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