| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-04-24 | Refs #33766 -- Removed unused Join.equals(). | Simon Charette | |
| It's unused now that the specialized FilteredRelation.as_sql logic is no more. | |||
| 2023-04-24 | Fixed #33766 -- Resolved FilteredRelation.condition at referencing time. | Simon Charette | |
| The previous implementation resolved condition at Join compilation time which required introducing a specialized expression resolving mode to alter the join reuse logic solely during that phase. FilteredRelation.condition is now resolved when the relation is first referenced which maintains the existing behavior while allowing the removal of the specialized resolving mode and address an issue where conditions couldn't spawn new joins. | |||
| 2023-04-18 | Refs #16055 -- Deprecated ↵ | David Wobrock | |
| get_joining_columns()/get_reverse_joining_columns() methods. | |||
| 2023-04-18 | Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation ↵ | David Wobrock | |
| relation on PostgreSQL. | |||
| 2023-04-11 | Fixed #34480 -- Fixed crash of annotations with Chr(). | Jacob Walls | |
| 2023-04-07 | Fixed #34464 -- Fixed queryset aggregation over group by reference. | Simon Charette | |
| Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7. Refs #28477. Thanks Ian Cubitt for the report. | |||
| 2023-04-05 | Fixed #34458 -- Fixed QuerySet.defer() crash on attribute names. | Simon Charette | |
| Thanks Andrew Cordery for the report. Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879. | |||
| 2023-04-04 | Fixed #34450 -- Fixed multi-valued JOIN reuse when filtering by expressions. | Simon Charette | |
| Thanks Roman Odaisky for the report. | |||
| 2023-03-28 | Fixed #34443 -- Fixed filtering by transforms on reverse relations. | Mariusz Felisiak | |
| Regression in ce6230aa976e8d963226a3956b45a8919215dbd8. | |||
| 2023-03-28 | Refs #29799 -- Added field instance lookups to suggestions in FieldErrors. | Mariusz Felisiak | |
| Bug in cd1afd553f9c175ebccfc0f50e72b43b9604bd97. | |||
| 2023-03-25 | Fixed #34437 -- Made values() resolving error mention selected annotations. | Simon Charette | |
| While the add_fields() call from set_values() does trigger validation it does so after annotations are masked resulting in them being excluded from the choices of valid options surfaced through a FieldError. | |||
| 2023-03-24 | Fixed #28553 -- Fixed annotation mismatch with ↵ | David Wobrock | |
| QuerySet.values()/values_list() on compound queries. Co-authored-by: Matthias Kestenholz <mk@feinheit.ch> | |||
| 2023-03-21 | Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵ | T. Franzel | |
| form fields. | |||
| 2023-03-20 | Fixed some typos in comments, docstrings, and tests. | Liyang Zhang | |
| 2023-03-18 | Fixed #34421 -- Fixed QuerySet.update() on querysets in descending order by ↵ | hb6h057 | |
| annotations. | |||
| 2023-03-14 | Refs #28329 -- Fixed Cast() with ForeignKey to integer fields on MySQL. | David Wobrock | |
| 2023-03-09 | Fixed #27397 -- Prevented integer overflows on integer field lookups. | Simon Charette | |
| This prevents a sqlite3 crash and address a potential DDoS vector on PostgreSQL caused by full-table-scans on overflows. | |||
| 2023-03-03 | Fixed #34378 -- Made QuerySet.in_bulk() not clear odering when id_list is ↵ | Ekaterina Vahrusheva | |
| passed. This reverts 340eaded4e30cf25bcd4e9781d33a617fe9c0f84. | |||
| 2023-02-27 | Fixed #34368 -- Made subquery raise NotSupportedError when referencing outer ↵ | Simon Charette | |
| window expression. Regression in f387d024fc75569d2a4a338bfda76cc2f328f627. Co-authored-by: Jannis Vajen <jvajen@gmail.com> | |||
| 2023-02-27 | Fixed #34372 -- Fixed queryset crash on order by aggregation using OrderBy. | Simon Charette | |
| Regression in 278881e37619278789942513916acafaa88d26f3 caused by a lack of expression copying when an OrderBy expression is explicitly provided. Thanks Jannis Vajen for the report and regression test. | |||
| 2023-02-23 | Fixed #34338 -- Allowed customizing code of ValidationError in ↵ | Xavier Fernandez | |
| BaseConstraint and subclasses. | |||
| 2023-02-23 | Refs #33829 -- Added violation_error_message to constraints' __repr__(). | Xavier Fernandez | |
| 2023-02-22 | Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint. | Xavier Fernandez | |
| 2023-02-20 | Fixed #34346 -- Ordered selected expressions by position. | Simon Charette | |
| 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-18 | Refs #34176 -- Adjusted group by position variables naming to follow SQL spec. | Simon Charette | |
| This avoids conceptual collisions with the notion of indices. | |||
| 2023-02-14 | Fixed #34280 -- Allowed specifying different field values for create ↵ | tschilling | |
| operation in QuerySet.update_or_create(). | |||
| 2023-02-08 | Fixed #34319 -- Fixed Model.validate_constraints() crash on ValidationError ↵ | Mariusz Felisiak | |
| with no code. Thanks Mateusz Kurowski for the report. Regression in 667105877e6723c6985399803a364848891513cc. | |||
| 2023-02-01 | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| 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-01-26 | Fixed #34254 -- Fixed return value of Exists() with empty queryset. | Raj Desai | |
| Thanks Simon Charette for reviews. | |||
| 2023-01-26 | Fixed #34291 -- Fixed Meta.constraints validation crash on UniqueConstraint ↵ | Mariusz Felisiak | |
| with ordered expressions. Thanks Dan F for the report. Bug in 667105877e6723c6985399803a364848891513cc. | |||
| 2023-01-24 | Fixed #34227 -- Fixed QuerySet.select_related() with multi-level ↵ | 朱穆穆 | |
| FilteredRelation. | |||
| 2023-01-23 | Fixed #34192 -- Preserved callable storage when it returns default_storage. | Matt Westcott | |
| 2023-01-20 | Fixed #34267 -- Fixed sliced QuerySet.union() crash. | Francesco Panico | |
| Regression in 3d734c09ff0138441dfe0a59010435871d17950f. Thanks Raphaël Stefanini for the report. | |||
| 2023-01-18 | Refs #34233 -- Used @functools.cache. | Nick Pope | |
| Python 3.9+ supports @functools.cache as an alias for @functools.lru_cache(maxsize=None). | |||
| 2023-01-18 | Refs #34233 -- Used str.removeprefix()/removesuffix(). | Mariusz Felisiak | |
| 2023-01-18 | Refs #34233 -- Used types.NoneType. | Nick Pope | |
| Available since Python 3.10 where it was reintroduced. | |||
| 2023-01-17 | Refs #33543 -- Made Expression.asc()/desc() and OrderBy raise ValueError ↵ | Mariusz Felisiak | |
| when nulls_first/nulls_last=False is passed. Per deprecation timeline. | |||
| 2023-01-17 | Refs #31486 -- Removed ability to pass unsaved model instances to related ↵ | Mariusz Felisiak | |
| filters. Per deprecation timeline. | |||
| 2023-01-17 | Refs #29984 -- Made QuerySet.iterator() without chunk_size raise ValueError ↵ | Mariusz Felisiak | |
| after prefetch_related(). Per deprecation timeline. | |||
| 2023-01-17 | Refs #32365 -- Removed is_dst argument for various methods and functions. | Mariusz Felisiak | |
| Per deprecation timeline. | |||
| 2023-01-09 | Refs #30240 -- Fixed argument name for MySQLSHA2Mixin.as_mysql() and ↵ | Marti Raudsepp | |
| PostgreSQLSHAMixin.as_postgresql() methods. | |||
| 2023-01-09 | Fixed #34176 -- Fixed grouping by ambiguous aliases. | Simon Charette | |
| Regression in b7b28c7c189615543218e81319473888bc46d831. Refs #31377. Thanks Shai Berger for the report and reviews. test_aggregation_subquery_annotation_values_collision() has been updated as queries that are explicitly grouped by a subquery should always be grouped by it and not its outer columns even if its alias collides with referenced table columns. This was not possible to accomplish at the time 10866a10 landed because we didn't have compiler level handling of colliding aliases. | |||
| 2023-01-04 | Simplified SQLCompiler.get_group_by() a bit. | Simon Charette | |
| 2022-12-28 | Fixed #14094 -- Added support for unlimited CharField on PostgreSQL. | Adrian Torres | |
| Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-12-28 | Fixed #18468 -- Added support for comments on columns and tables. | kimsoungryoul | |
| Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-12-27 | Fixed #34226 -- Fixed QuerySet.select_related() with multiple ↵ | 朱穆穆 | |
| FilteredRelations to the OneToOneField. | |||
| 2022-12-24 | Used allow_migrate_model() shortcut in Field._check_backend_specific_checks(). | Mariusz Felisiak | |
| 2022-12-24 | Refs #34226 -- Renamed local field variables in ↵ | Mariusz Felisiak | |
| SQLCompiler.get_related_selections() to avoid redefinition. | |||
| 2022-12-15 | Fixed #33308 -- Added support for psycopg version 3. | Daniele Varrazzo | |
| Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-12-01 | Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵ | Simon Charette | |
| to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms. | |||
