| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-07-08 | [4.1.x] Fixed #33829 -- Made BaseConstraint.deconstruct() and equality ↵ | Stéphane "Twidi" Angel | |
| handle violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc. Backport of ccbf714ebeff51d1370789e5e487a978d0e2dbfb from main | |||
| 2022-07-06 | [4.1.x] Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() ↵ | Simon Charette | |
| parameters. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Backport of 877c800f255ccaa7abde1fb944de45d1616f5cc9 from main | |||
| 2022-07-04 | [4.1.x] Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) ↵ | Mariusz Felisiak | |
| against SQL injection. Thanks Takuto Yoshikai (Aeye Security Lab) for the report. | |||
| 2022-06-27 | [4.1.x] Fixed #33796 -- Fixed ordered combined queryset crash when used in ↵ | Mariusz Felisiak | |
| subquery on PostgreSQL and MySQL. Thanks Shai Berger for the report. Regression in 30a01441347d5a2146af2944b29778fa0834d4be. Backport of 44ffd8d06fabc07d8333f31439e8dd39ea87329b from main | |||
| 2022-06-23 | [4.1.x] Fixed #33799, Refs #31685 -- Added parameters for updating conflicts ↵ | DhruvaPatil98 | |
| to QuerySeta.abulk_create(). Backport of c627226d05dd52aef59447dcfb29cec2c2b11b8a from main | |||
| 2022-06-17 | [4.1.x] Fixed #28897 -- Fixed QuerySet.update() on querysets ordered by ↵ | David Wobrock | |
| annotations. Backport of 3ef37a5245015f69a9b9f884ebc289a35d02c5f6 from main | |||
| 2022-05-19 | [4.1.x] Fixed #33705 -- Fixed crash when using IsNull() lookup in filters. | David Wobrock | |
| Thanks Florian Apolloner for the report. Thanks Simon Charette for the review. Backport of 9f5548952906c6ea97200c016734b4f519520a64 from main | |||
| 2022-05-17 | [4.1.x] Updated source translation catalogs. | Mariusz Felisiak | |
| 2022-05-13 | Fixed typo in Query.clone()'s docstring. | 非法操作 | |
| 2022-05-12 | Fixed #33543 -- Deprecated passing nulls_first/nulls_last=False to OrderBy ↵ | Mariusz Felisiak | |
| and Expression.asc()/desc(). Thanks Allen Jonathan David for the initial patch. | |||
| 2022-05-12 | Fixed #29538 -- Fixed crash of ordering by related fields when Meta.ordering ↵ | Ed Rivas | |
| contains expressions. Thanks Simon Charette for the review. | |||
| 2022-05-10 | Fixed #30581 -- Added support for Meta.constraints validation. | Gagaro | |
| Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews. | |||
| 2022-05-04 | Refs #30581 -- Added Q.check() hook. | Gagaro | |
| 2022-05-04 | Refs #33646 -- Reduced sync_to_async hops on async QuerySet iteration. | Simon Charette | |
| 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-03 | Refs #30581 -- Added Q.flatten(). | Gagaro | |
| 2022-05-02 | Refs #33646 -- Made QuerySet.raw() async-compatible. | Mariusz Felisiak | |
| 2022-05-02 | Refs #33646 -- Added RawModelIterable. | Mariusz Felisiak | |
| 2022-05-02 | Fixed #33413 -- Made migrations propage collations to related fields. | David Wobrock | |
| 2022-04-29 | Refs #33413 -- Added collation to CharField/TextField's db_parameters. | David Wobrock | |
| 2022-04-26 | Fixed #33646 -- Added async-compatible interface to QuerySet. | Andrew Godwin | |
| Thanks Simon Charette for reviews. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-04-26 | Fixed #33655 -- Removed unnecessary constant from GROUP BY clause for ↵ | marcperrinoptel | |
| QuerySet.exists(). | |||
| 2022-04-22 | Removed unnecessary variable in Index.create_sql(). | Hannes Ljungberg | |
| Unnecessary since fdfb3086fcba1b737ec09676ab4bb95105f3371e. | |||
| 2022-04-22 | Refs #31223 -- Added __class_getitem__() to ForeignKey. | Collin Anderson | |
| 2022-04-21 | Fixed #33004 -- Made saving objects with unsaved GenericForeignKey raise ↵ | sarahboyce | |
| ValueError. This aligns to the behaviour of OneToOneField and ForeignKey fields. Thanks Jonny Park for the initial patch. | |||
| 2022-04-19 | Refs #32226 -- Fixed JSON format of QuerySet.explain() on PostgreSQL when ↵ | Mariusz Felisiak | |
| format is uppercased. Follow up to aba9c2de669dcc0278c7ffde7981be91801be00b. | |||
| 2022-04-14 | Made select_for_update() don't raise TransactionManagementError on databases ↵ | Mariusz Felisiak | |
| that don't support transactions. | |||
| 2022-04-13 | Fixed DatabaseFeatures.supports_index_column_ordering and related tests with ↵ | Mariusz Felisiak | |
| MyISAM storage engine. | |||
| 2022-04-13 | Removed unnecessary tuple call in SQLInsertCompiler. | David Smith | |
| 2022-04-12 | Fixed #24296 -- Made QuerySet.exists() clear selected columns for not sliced ↵ | mgaligniana | |
| distinct querysets. | |||
| 2022-04-12 | Fixed #33626 -- Cleared cache when unregistering a lookup. | Himanshu-Balasamanta | |
| 2022-04-11 | Fixed CVE-2022-28347 -- Protected QuerySet.explain(**options) against SQL ↵ | Mariusz Felisiak | |
| injection on PostgreSQL. | |||
| 2022-04-11 | Fixed CVE-2022-28346 -- Protected QuerySet.annotate(), aggregate(), and ↵ | Mariusz Felisiak | |
| extra() against SQL injection in column aliases. Thanks Splunk team: Preston Elder, Jacob Davis, Jacob Moore, Matt Hanson, David Briggs, and a security researcher: Danylo Dmytriiev (DDV_UA) for the report. | |||
| 2022-04-07 | Fixed #33618 -- Fixed MTI updates outside of primary key chain. | Simon Charette | |
| 2022-04-06 | Fixed #33471 -- Made AlterField operation a noop when changing "choices". | sarahboyce | |
| This also allows customizing attributes of fields that don't affect a column definition. | |||
| 2022-03-31 | Fixed #33397 -- Corrected resolving output_field for ↵ | Luke Plant | |
| DateField/DateTimeField/TimeField/DurationFields. This includes refactoring of CombinedExpression._resolve_output_field() so it no longer uses the behavior inherited from Expression of guessing same output type if argument types match, and instead we explicitly define the output type of all supported operations. This also makes nonsensical operations involving dates (e.g. date + date) raise a FieldError, and adds support for automatically inferring output_field for cases such as: * date - date * date + duration * date - duration * time + duration * time - time | |||
| 2022-03-31 | Refs #33397 -- Added register_combinable_fields(). | Luke Plant | |
| 2022-03-31 | Removed unnecessary Query.get_loaded_field_names_cb() and ↵ | Mariusz Felisiak | |
| Query.deferred_to_data()'s callback argument. | |||
| 2022-03-31 | Refs #24020 -- Removed redundant Query.get_loaded_field_names(). | Mariusz Felisiak | |
| get_loaded_field_names() is no longer called in multiple places (see 0c7633178fa9410f102e4708cef979b873bccb76) and it's redundant with SQLCompiler.deferred_to_columns(). | |||
| 2022-03-31 | Updated select_related_descend() comment. | Mariusz Felisiak | |
| Outdated since 0c7633178fa9410f102e4708cef979b873bccb76. | |||
| 2022-03-30 | Fixed #33598 -- Reverted "Removed unnecessary reuse_with_filtered_relation ↵ | Mariusz Felisiak | |
| argument from Query methods." Thanks lind-marcus for the report. This reverts commit 0c71e0f9cfa714a22297ad31dd5613ee548db379. Regression in 0c71e0f9cfa714a22297ad31dd5613ee548db379. | |||
| 2022-03-24 | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | |
| Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | |||
| 2022-03-16 | Made BaseConstraint importable from django.db.models. | Gagaro | |
| 2022-03-16 | Used sets for field names for exclusion. | Gagaro | |
| They are used only for containment checks. | |||
| 2022-03-16 | Refs #30581 -- Allowed sql.Query to be used without model. | Gagaro | |
| 2022-03-15 | Fixed #33552 -- Fixed JSONField has key lookups with numeric keys on ↵ | Sage Abdullah | |
| MariaDB, MySQL, Oracle, and SQLite. | |||
| 2022-03-04 | Fixed #29865 -- Added logical XOR support for Q() and querysets. | Ryan Heard | |
| 2022-03-03 | Refs #27624 -- Optimized Query.clone() a bit. | Keryn Knight | |
| 2022-03-03 | Refs #27624 -- Optimized sql.Query creation by moving immutable/singleton ↵ | Keryn Knight | |
| attributes to class attributes. | |||
| 2022-02-25 | Fixed #31486 -- Deprecated passing unsaved objects to related filters. | Albert Defler | |
| Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2022-02-22 | Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many ↵ | Albert Defler | |
| relations for unsaved instances. | |||
