| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-01-15 | Refs #35234 -- Removed CheckConstraint.check per deprecation timeline. | Sarah Boyce | |
| 2025-01-15 | Refs #35060 -- Removed passing positional arguments to Model.save()/asave() ↵ | Sarah Boyce | |
| per deprecation timeline. | |||
| 2025-01-15 | Refs #33651 -- Removed Prefetch.get_current_queryset() and ↵ | Sarah Boyce | |
| get_prefetch_queryset() per deprecation timeline. | |||
| 2025-01-15 | Removed ChoicesMeta per deprecation timeline. | Sarah Boyce | |
| 2025-01-15 | Refs #16055 -- Removed get_joining_columns()/get_reverse_joining_columns() ↵ | Sarah Boyce | |
| methods per deprecation timeline. | |||
| 2025-01-15 | Refs #34547 -- Removed DatabaseOperations.field_cast_sql() per deprecation ↵ | Sarah Boyce | |
| timeline. | |||
| 2025-01-15 | Refs #34355 -- Removed support for positional arguments in BaseConstraint ↵ | Sarah Boyce | |
| per deprecation timeline. | |||
| 2025-01-15 | Fixed #36100 -- Checked if composite pk is set in get_next/get_previous. | Jacob Walls | |
| 2025-01-14 | Fixed #36051 -- Declared arity on aggregate functions. | Jacob Walls | |
| Follow-up to 4a66a69239c493c05b322815b18c605cd4c96e7c. | |||
| 2025-01-14 | Refs #36075 -- Adjusted MTI handling of _non_pk_concrete_field_names. | Simon Charette | |
| Regression in bf7b17d16d3978b2e1cee4a0f7ce8840bd1a8dc4. Thanks Sage Abdullah for the report. | |||
| 2025-01-14 | Refs #36075 -- Adjusted pk_fields usage in bulk_update eligibility checks. | Simon Charette | |
| Regression in bf7b17d16d3978b2e1cee4a0f7ce8840bd1a8dc4. Thanks Sage Abdullah for the report. | |||
| 2025-01-14 | Fixed #36093 -- Adjusted unique checks to account for inherited primary keys. | Simon Charette | |
| Regression in bf7b17d16d3978b2e1cee4a0f7ce8840bd1a8dc4 refs #36075. Thanks Sage Abdullah for the report and tests. | |||
| 2025-01-14 | Fixed CVE-2024-56374 -- Mitigated potential DoS in IPv6 validation. | Michael Manfre | |
| Thanks Saravana Kumar for the report, and Sarah Boyce and Mariusz Felisiak for the reviews. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2025-01-13 | Fixed #36092 -- Disallowed non-local fields in composite primary keys. | Bendeguz Csirmaz | |
| 2025-01-13 | Refs #36075 -- Used field in pk_fields over field.primary_key. | Sarah Boyce | |
| 2025-01-13 | Refs #36050 -- Fixed OuterRef support for CompositePrimaryKey on Oracle. | Simon Charette | |
| Oracle doesn't support native tuple comparison so each as_oracle implementation of tuple lookups must also perform right-hand-side sanitization. | |||
| 2025-01-13 | Fixed #36086 -- Fixed crash when using GeneratedField with non-AutoField pk. | Simon Charette | |
| The previous logic was systematically attempting to retrieve last_insert_id even for models without an AutoField primary key when they had a GeneratedField on backends that can't return columns from INSERT. The issue affected MySQL, SQLite < 3.35, and Oracle when the use_returning_into option was disabled and could result in either crashes when the non-auto primary key wasn't an IntegerField subclass or silent misassignment of bogus insert ids (0 or the previous auto primary key insert value) to the first defined generated field value. | |||
| 2025-01-13 | Refs #373 -- Removed unused composite pk code in SQLInsertCompiler. | Simon Charette | |
| This logic could only be exercised if the composite primary key included an AutoField but it's not allowed yet (refs #35957). It was also slightly broken as it expected the AutoField to always be the first member of returning_fields. | |||
| 2025-01-10 | Fixed #36050 -- Added OuterRef support to CompositePrimaryKey. | Bendeguz Csirmaz | |
| 2025-01-10 | Fixed #36064 -- Skipped an UPDATE when adding a model instance with a ↵ | Bendeguz Csirmaz | |
| composite primary key with default values. | |||
| 2025-01-10 | Refs #36064 -- Added Model.has_db_default() to encapsulate NOT_PROVIDED checks. | Simon Charette | |
| This avoids many awkward checks against NOT_PROVIDED and provides symmetry with Field.has_default() which is also the reason why it wasn't made a property. | |||
| 2025-01-10 | Fixed #36068 -- Raised ValueError when providing a composite PK field to ↵ | Jacob Walls | |
| bulk_create() update_fields. | |||
| 2025-01-09 | Fixed #36074 -- Excluded composite primary key fields on save() updates. | Simon Charette | |
| 2025-01-08 | Fixed #36062 -- Handled serialization of CompositePrimaryKeys. | Sarah Boyce | |
| 2025-01-08 | Fixed #36065 -- Fixed ordering by expression referencing composite primary key. | Simon Charette | |
| Thanks Jacob Walls for the report and test and Csirmaz Bendegúz for the review. | |||
| 2025-01-07 | Refs #36042 -- Raised ValueError when providing composite expressions to ↵ | Jacob Walls | |
| aggregates. | |||
| 2025-01-07 | Fixed #36042 -- Raised ValueError when using CompositePrimaryKey as rhs. | Jacob Walls | |
| 2025-01-06 | Fixed #35718 -- Add JSONArray to django.db.models.functions. | John Parton | |
| Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2025-01-06 | Fixed #36048 -- Preferred ValueError to NotSupportedError for composite pk ↵ | Jacob Walls | |
| sanity checks. These checks are not backend-dependent. | |||
| 2025-01-03 | Fixed #35918 -- Added support for execute_sql to directly return row counts. | Raphael Gaschignard | |
| 2025-01-03 | Fixed #36029 -- Handled implicit exact lookups in condition depth checks for ↵ | Jacob Walls | |
| FilteredRelation. | |||
| 2025-01-02 | Fixed typo in django/db/models/fields/related_descriptors.py. | Jacob Walls | |
| 2025-01-02 | Fixed typo in django/db/models/query.py docstring. | Jacob Walls | |
| 2025-01-02 | Fixed #36034 -- Added system check for ↵ | Mariusz Felisiak | |
| ForeignKey/ForeignObject/ManyToManyField to CompositePrimaryKeys. | |||
| 2025-01-02 | Refs #373 -- Errored when providing db_column to CompositePrimaryKey. | Jacob Walls | |
| 2024-12-17 | Fixed #35992, Fixed #35997 -- Added system check for CompositePrimaryKeys in ↵ | Mariusz Felisiak | |
| Meta.indexes/constraints/unique_together. CompositePrimaryKeys are not supported in any of these options. | |||
| 2024-12-16 | Refs #35718, Refs #32179 -- Moved JSONObject to django.db.models.functions.json. | Sage Abdullah | |
| 2024-12-16 | Imported Coalesce from django.db.models.functions. | Jacob Walls | |
| 2024-12-11 | Refs #35936 -- Avoided field placeholder lookup for each value inserted. | Simon Charette | |
| By building the list of placeholders for each inserted fields once it doesn't have to be looked up for each inserted rows twice. The query_values_10000.benchmark.QueryValues10000.time_query_values_10000 ASV benchmark showed a 5% speed up for 10k items on SQLite for a single field insertion. Larger performance gains are expected when more fields are involved. | |||
| 2024-12-09 | Fixed #35982 -- Made DecimalField.get_db_prep_value() call ↵ | Tim Graham | |
| DatabaseOperations.adapt_decimalfield_value(). Regression in e9814029f570bd0866dc859147bca90340bcc913. Thanks Simon Charette for advice and review. | |||
| 2024-12-04 | Fixed CVE-2024-53908 -- Prevented SQL injections in direct HasKeyLookup ↵ | Simon Charette | |
| usage on Oracle. Thanks Seokchan Yoon for the report, and Mariusz Felisiak and Sarah Boyce for the reviews. | |||
| 2024-12-03 | Refs #35842 -- Fixed handling of quotes in JSONField key lookups on Oracle. | Sage Abdullah | |
| 2024-12-02 | Fixed #35950 -- Restored refreshing of relations when fields deferred. | Adam Johnson | |
| Thank you to Simon Charette and Sarah Boyce for the review. Regression in 73df8b54a2fab53bec4c7573cda5ad8c869c2fd8. | |||
| 2024-11-29 | Fixed #373 -- Added CompositePrimaryKey. | Bendeguz Csirmaz | |
| Thanks Lily Foote and Simon Charette for reviews and mentoring this Google Summer of Code 2024 project. Co-authored-by: Simon Charette <charette.s@gmail.com> Co-authored-by: Lily Foote <code@lilyf.org> | |||
| 2024-11-28 | Fixed #35038 -- Created AlterConstraint operation. | Salvo Polizzi | |
| 2024-11-11 | Fixed #35815 -- Made system check accept db_default literals when ↵ | Tim Graham | |
| DatabaseFeatures.supports_expression_defaults = False. | |||
| 2024-11-06 | Fixed #35778 -- Used JSON_OBJECT database function on PostgreSQL 16+ with ↵ | John Parton | |
| server-side bindings. | |||
| 2024-11-06 | Removed definition of JSONObject ArgJoiner class in as_native function. | Sarah Boyce | |
| 2024-11-04 | Refs #373 -- Added TupleIn subqueries. | Bendeguz Csirmaz | |
| 2024-11-01 | Fixed #35837 -- Added missing alters_data=True to QuerySet and UserManager ↵ | Sarah Boyce | |
| methods. Thank you to Jason Chambers for the report and to Mariusz Felisiak for the review. | |||
