summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-07Fixed #33982 -- Fixed migrations crash when adding model with ↵James Beith
ExclusionConstraint. Regression in 0e656c02fe945389246f0c08f51c6db4a0849bd2.
2022-09-06Refs #33616 -- Updated BaseDatabaseWrapper.run_on_commit comment.DevilsAutumn
2022-09-06Fixed #33862 -- Added workflow to run the ASV benchmarks for labeled PR.Deepak Dinesh
2022-09-06Fixed #33616 -- Allowed registering callbacks that can fail in ↵SirAbhi13
transaction.on_commit(). Thanks David Wobrock and Mariusz Felisiak for reviews.
2022-09-06Fixed #24179 -- Added filtering to selected side of vertical/horizontal filters.Gav O'Connor
2022-09-06Refs #24179 -- Added extra JS tests for admin vertical/horizontal filters.Gav O'Connor
2022-09-06Refs #26780 -- Made prefetch_related() don't use window expressions fo ↵Mariusz Felisiak
sliced queries if not supported.
2022-09-05Fixed #33937 -- Optimized serialization of related m2m fields without ↵Mark Evans
natural keys.
2022-09-05Added stub release notes for 4.1.2.Mariusz Felisiak
2022-09-05Added release date for 4.1.1.Mariusz Felisiak
2022-09-04Corrected heading level of "Registering and fetching lookups" section in docs.Mariusz Felisiak
2022-09-02Fixed #29799 -- Allowed registering lookups per field instances.Allen Jonathan David
Thanks Simon Charette and Mariusz Felisiak for reviews and mentoring this Google Summer of Code 2022 project.
2022-09-01Fixed ReadOnlyPasswordHashWidget's template for RTL languages.Shai Berger
2022-09-01Fixed #33955, Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal ↵Mariusz Felisiak
URLResolver view-strings mapping to admindocs." This reverts commit 7f3cfaa12b28d15c0ca78bb692bfd6e59d17bff1. Thanks Tom Carrick and Greg Kaleka for reports.
2022-09-01Refs #29799 -- Added more tests for registering lookups.Allen Jonathan David
2022-09-01Bumped versions in pre-commit and npm configurations.Mariusz Felisiak
2022-08-31Reverted "Fixed #30711 -- Doc'd ↵Mariusz Felisiak
django.contrib.postgres.fields.hstore.KeyTransform()." This reverts commit 7faf25d682b8e8f4fd2006eb7dfc71ed2a2193b7. The same can be achieved with F() so there is no need to expose an extra API.
2022-08-31Fixed #33965 -- Improved file-like object example of ImageField in docs.Alex Morega
This uses a valid image.
2022-08-31Corrected the direction of arrows in admin selector boxes for RTL languages.Swara
2022-08-30Added Central Kurdish (Sorani) language.Swara
2022-08-30Refs #30947 -- Changed tuples to lists where appropriate.Alex Morega
2022-08-30Fixed #21204 -- Tracked field deferrals by field instead of models.Simon Charette
This ensures field deferral works properly when a model is involved more than once in the same query with a distinct deferral mask.
2022-08-30Refs #21204 -- Added more QuerySet.defer()/only() tests for invalid fields.Simon Charette
2022-08-30Merged nested if statements in select_related_descend().Simon Charette
2022-08-30Fixed #33958 -- Added imports to examples in "Expressions can reference ↵Iván Camilo Triviño López
transforms" section.
2022-08-29Improved example of index on SearchVector in full text search docs.Ilia Peterov
2022-08-29Refs #33953 -- Fixed test_rename_model_with_db_table_rename_m2m() crash on ↵Mariusz Felisiak
SQLite < 3.20.
2022-08-29Fixed #33960 -- Fixed migrations crash on SQLite < 3.26.Mariusz Felisiak
Regression in 0b95a96ee10d3e12aef01d449467bcf4641286b4. Thanks Aristotelis Mikropoulos for the report.
2022-08-29Refs #28333 -- Fixed NonQueryWindowTests.test_invalid_filter() on databases ↵Mariusz Felisiak
that don't support window expressions.
2022-08-27Fixed #33954 -- Prevented models.DecimalField from accepting NaN, Inf, and ↵Mohamed Karam
-Inf values.
2022-08-27Fixed #33952 -- Reallowed creating reverse foreign key managers on unsaved ↵David Wobrock
instances. Thanks Claude Paroz for the report. Regression in 7ba6ebe9149ae38257d70100e8bfbfd0da189862.
2022-08-27Fixed #33928 -- Avoided unnecessary queries when cascade updating.Simon Charette
Models that use SET, SET_NULL, and SET_DEFAULT as on_delete handler don't have to fetch objects for the sole purpose of passing them back to a follow up UPDATE query filtered by the retrieved objects primary key. This was achieved by flagging SET handlers as _lazy_ and having the collector logic defer object collections until the last minute. This should ensure that the rare cases where custom on_delete handlers are defined remain uncalled when when dealing with an empty collection of instances. This reduces the number queries required to apply SET handlers from 2 to 1 where the remaining UPDATE use the same predicate as the non removed SELECT query. In a lot of ways this is similar to the fast-delete optimization that was added in #18676 but for updates this time. The conditions only happen to be simpler in this case because SET handlers are always terminal. They never cascade to more deletes that can be combined. Thanks Renan GEHAN for the report.
2022-08-27Refs #33928 -- Removed unnecessary attribute assignment on on-delete updates.Simon Charette
Model instances retrieved for bulk field update purposes are not exposed to the outside world and thus are not required to be kept update to date.
2022-08-26Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.Mariusz Felisiak
Follow up to 2eea361eff58dd98c409c5227064b901f41bd0d6.
2022-08-26Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation a noop ↵Iuri de Silvio
for models with db_table." Regression in afeafd6036616bac8263d762c1610f22241c0187. This reverts afeafd6036616bac8263d762c1610f22241c0187. Thanks Timothy Thomas for the report.
2022-08-25Fixed #33938 -- Fixed migration crash for m2m with a through model in ↵Simon Charette
another app. Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. Thanks bryangeplant for the report.
2022-08-25Fixed typo in django/db/models/fields/files.py comment.Jan Pieter Waagmeester
2022-08-25Fixed #33830 -- Fixed VariableDoesNotExist when rendering ClearableFileInput.Neeraj Kumar
2022-08-25Refs #18707 -- Corrected django.test.Client signature in docs.Daniel Hahler
2022-08-25Fixed #33916 -- Added support for serialization of enum.Flag in migrations.Willem Van Onsem
2022-08-24Refs #27412 -- Confirmed support for executing Coalesce(subquery).Simon Charette
This has been supported for subqueries wrapped in Subquery since the expression was introduced and for Queryset directly since Subquery resolves to sql.Query. Piggy-backed on the existing tests covering Coalesce handling of EmptyResultSet as it seemed like a proper location to combine testing.
2022-08-24Fixed #33920 -- Doc'd dependency of LOGGING_CONFIG callback on non-empty ↵Kanza
LOGGING.
2022-08-23Fixed #33927 -- Fixed crash when displaying ArrayField with choices in admin.David Wobrock
2022-08-23Removed unused path variable in model_fields tests.Claude Paroz
2022-08-23Fixed #33949 -- Fixed fixture dirs duplicates with Path instances.Claude Paroz
2022-08-23Fixed #33939 -- Used functools.partial() in transaction.on_commit() examples.Alex Morega
2022-08-18Refs #26511 -- Fixed json.KeyTextTransform() on MySQL/MariaDB.Mariusz Felisiak
2022-08-18Used CSS flex for admin's submit row.Tom Carrick
2022-08-18Fixed #33930 -- Eased customization of delete_confirmation.html template in ↵Jacob Rief
the admin.
2022-08-17Fixed #33932 -- Fixed altering AutoFields to OneToOneField on PostgreSQL.Benoît Vinot
Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6.