Simon Charette
278881e376
Fixed #34346 -- Ordered selected expressions by position.
...
Used the same approach as for #34176 by using selected expressions
position to prevent ambiguous aliases in collisions.
Thanks henribru for the report.
Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
2023-02-20 05:54:25 +01:00
Simon Charette
f91e085c30
Refs #34176 -- Adjusted group by position variables naming to follow SQL spec.
...
This avoids conceptual collisions with the notion of indices.
2023-02-18 18:42:49 -05:00
syre
eafe1468d2
Fixed #34347 -- Added __all__ to django.contrib.gis.utils.
2023-02-17 21:06:41 +01:00
Stefan Brand
eacf6b73d8
Fixed #34302 -- Fixed SpatialReference.srid for objects without top-level authority.
2023-02-17 19:56:29 +01:00
Stefan Brand
d77762de03
Refs #34302 -- Fixed SpatialReference.auth_name()/auth_code() when target is None.
...
force_bytes() turns None into the byte string b"None". Since
ctypes.c_char_p() also accepts None, we can bypass force_bytes() if
target is None.
2023-02-17 19:56:29 +01:00
Alexandre Spaeth
52b054824e
Fixed #34342 , Refs #33735 -- Fixed test client handling of async streaming responses.
...
Bug in 0bd2c0c9015b53c41394a1c0989afbfd94dc2830.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2023-02-17 10:48:04 +01:00
Nick Pope
8eef22dfed
Fixed #34343 -- Moved built-in templates to filesystem.
2023-02-17 09:50:50 +01:00
Durval Carvalho
85366fbca7
Fixed #34045 -- Improved accessibility of selecting items in admin changelist.
...
This adds "aria-label".
2023-02-16 08:29:40 +01:00
nabil-rady
6bdc3c58b6
Fixed #34320 -- Make sure constraints names are obtained from truncated columns names.
2023-02-15 16:51:31 +01:00
DevilsAutumn
ff3a283422
Fixed #34250 -- Fixed renaming model with m2m relation to a model with the same name.
2023-02-14 14:08:06 +01:00
tschilling
c5808470aa
Fixed #34280 -- Allowed specifying different field values for create operation in QuerySet.update_or_create().
2023-02-14 11:50:35 +01:00
Markus Holtermann
85ac33591c
Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files.
...
Thanks to Jakob Ackermann for the report.
2023-02-14 08:18:40 +01:00
sarahboyce
e678046681
Fixed #34316 -- Fixed layout of admin password change forms and help texts.
...
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
2023-02-13 09:41:31 +01:00
Dhanush
a18d20ca97
Fixed #32813 -- Made runserver display port after binding.
...
Thanks Florian Apolloner for the review.
2023-02-10 08:22:34 +01:00
Jacob Rief
473283d241
Fixed #34303 –- Allowed customizing admin site log entry list.
...
Added AdminSite.get_log_entries() as an override point and made this
available to the template via each_context().
2023-02-08 18:37:32 +01:00
Mariusz Felisiak
2fd755b361
Fixed #34319 -- Fixed Model.validate_constraints() crash on ValidationError with no code.
...
Thanks Mateusz Kurowski for the report.
Regression in 667105877e6723c6985399803a364848891513cc.
2023-02-08 16:38:55 +01:00
Anders Hovmöller
69069a443a
Refs #7430 -- Removed broken Template.__iter__().
...
Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
2023-02-08 11:17:58 +01:00
Bakdolot
325c44ac6c
Fixed #34315 -- Preserved admin changelist filters on "Close" button.
2023-02-08 09:38:14 +01:00
Youngkwang Yang
9f20f382ca
Fixed #34313 -- Updated thousands separator for Spanish (ES) locale.
...
Format was updated from a comma to a space in 2010.
ref: https://en.wikipedia.org/wiki/Decimal_separator#Examples_of_use
2023-02-08 09:37:08 +01:00
Bakdolot
5f3c7b7e1d
Fixed #34317 -- Renamed "instance" argument of BaseModelFormSet.save_existing() method.
2023-02-07 14:18:58 +01:00
Nils VAN ZUIJLEN
ae1fe72e9b
Fixed #34285 -- Fixed index/slice lookups on filtered aggregates with ArrayField.
...
Thanks Simon Charette for the review.
2023-02-07 13:16:41 +01:00
Jacob Walls
4403432b75
Fixed #33638 -- Fixed GIS lookups crash with geography fields on PostGIS.
2023-02-07 11:48:10 +01:00
Frederic Mheir
2878938626
Fixed #34301 -- Made admin's submit_row check add permission for "Save as new" button.
2023-02-07 07:01:10 +01:00
Dan Glass
bd366ca2ae
Made PostgreSQL's SchemaEditor._create_index_sql() respect the "sql" argument.
2023-02-06 10:41:08 +01:00
Mariusz Felisiak
5e9aded33f
Increased the default PBKDF2 iterations for Django 5.0.
...
Follow up to 9a1848f48c1f7f627a52b2063a8a8428e77765d6.
2023-02-04 13:37:44 +01:00
Adam Johnson
017fa23d3b
Fixed #34259 -- Passed called_from_command_line to command subparsers.
2023-02-03 06:56:57 +01:00
skidipap
1250483ebf
Fixed #34286 -- Fixed admindocs markups for case-sensitive template/view names.
2023-02-02 13:21:08 +01:00
Mariusz Felisiak
c626173833
Improved error message for ASCIIUsernameValidator.
...
Follow up to 10bb21e71e3668f770493e2af0d0e0271830f7a3.
Co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
2023-02-02 09:27:15 +01:00
David Smith
097e3a70c1
Refs #33476 -- Applied Black's 2023 stable style.
...
Black 23.1.0 is released which, as the first release of the year,
introduces the 2023 stable style. This incorporates most of last year's
preview style.
https://github.com/psf/black/releases/tag/23.1.0
2023-02-01 11:04:38 +01:00
Nick Pope
8c660fb592
Fixed CVE-2023-23969 -- Prevented DoS with pathological values for Accept-Language.
...
The parsed values of Accept-Language headers are cached in order to
avoid repetitive parsing. This leads to a potential denial-of-service
vector via excessive memory usage if the raw value of Accept-Language
headers is very large.
Accept-Language headers are now limited to a maximum length in order
to avoid this issue.
2023-02-01 09:44:04 +01:00
sage
110b3b8356
Fixed #34304 -- Made MySQL's SchemaEditor.remove_constraint() don't create foreign key index when unique constraint is ignored.
...
Regression in b731e8841558ee4caaba766c83f34ea9c7004f8b.
2023-01-31 11:52:07 +01:00
Stanislav Volyk
20a0850099
Fixed #34283 -- Escaped title in admin's changelist filters.
...
Regression in 27aa7035f57f0db30b6632e4274e18b430906799.
2023-01-30 09:37:53 +01:00
Sarah Boyce
8acc433e41
Fixed #28054 -- Made runserver not return response body for HEAD requests.
...
Co-authored-by: jannschu <jannik.schuerg@posteo.de>
2023-01-27 21:49:54 +01:00
Mariusz Felisiak
82dad11bfe
Refs #34255 -- Skipped test_group_by_nested_expression_with_params test on PostgreSQL when server-side binding cursors are used.
...
Thanks Tim Graham for the review.
2023-01-27 21:28:10 +01:00
Raj Desai
246eb4836a
Fixed #34254 -- Fixed return value of Exists() with empty queryset.
...
Thanks Simon Charette for reviews.
2023-01-26 19:54:48 +01:00
Simon Sawicki
7eb5391b71
Fixed #34294 -- Protected django.core.files.locks against argtypes redefinition on Windows.
2023-01-26 19:39:33 +01:00
Mariusz Felisiak
2b1242abb3
Fixed #34291 -- Fixed Meta.constraints validation crash on UniqueConstraint with ordered expressions.
...
Thanks Dan F for the report.
Bug in 667105877e6723c6985399803a364848891513cc.
2023-01-26 09:31:40 +01:00
朱穆穆
d3c93cdc59
Fixed #34227 -- Fixed QuerySet.select_related() with multi-level FilteredRelation.
2023-01-24 10:20:27 +01:00
Matt Westcott
ef85b6bf0b
Fixed #34192 -- Preserved callable storage when it returns default_storage.
2023-01-23 10:29:17 +01:00
Claude Paroz
e3a4cee081
Fixed #34278 -- Made translatable string plural-aware in SelectFilter2.js.
...
Bug in be63c78760924e1335603c36babd0ad6cfaea3c4.
2023-01-23 06:08:41 +01:00
touhf
e1a093f8cb
Added short description to remove_stale_contenttypes command.
2023-01-20 12:58:51 +01:00
Francesco Panico
cc8aa6bf9c
Fixed #34267 -- Fixed sliced QuerySet.union() crash.
...
Regression in 3d734c09ff0138441dfe0a59010435871d17950f.
Thanks Raphaël Stefanini for the report.
2023-01-20 08:51:38 +01:00
Niccolò Mineo
79c298c9ce
Fixed #34266 -- Added ClosestPoint GIS database functions.
2023-01-20 08:13:43 +01:00
David Wobrock
4b066bde69
Fixed #34272 -- Fixed floatformat crash on zero with trailing zeros to zero decimal places.
...
Regression in 08c5a787262c1ae57f6517d4574b54a5fcaad124.
Thanks Andrii Lahuta for the report.
2023-01-19 10:15:40 +01:00
Nick Pope
39f83765e1
Refs #32528 -- Simplified MigrationAutodetector._sort_migrations().
2023-01-19 06:34:28 +01:00
Nick Pope
1e62a64202
Refs #32528 -- Simplified Media.merge().
...
This avoids building up a second datastructure for the duplicate files
warning case and simply flatten and strip duplicates if that case ever
arises.
2023-01-19 06:33:39 +01:00
Nick Pope
1282b5e420
Fixed #32528 -- Replaced django.utils.topological_sort with graphlib.TopologicalSort().
...
graphlib.TopologicalSort() is available since Python 3.9.
2023-01-19 06:31:40 +01:00
Nick Pope
4470c2405c
Refs #34233 -- Used @functools.cache.
...
Python 3.9+ supports @functools.cache as an alias for
@functools.lru_cache(maxsize=None).
2023-01-18 19:23:18 +01:00
Mariusz Felisiak
23e8868862
Refs #34233 -- Used str.removeprefix()/removesuffix().
2023-01-18 19:11:18 +01:00
Nick Pope
fd21f82aa8
Refs #34233 -- Used types.NoneType.
...
Available since Python 3.10 where it was reintroduced.
2023-01-18 17:27:23 +01:00