| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-07-05 | Fixed #32226 -- Fixed JSON format of QuerySet.explain() on PostgreSQL. | Wu Haotian | |
| 2021-07-05 | Refs #28574 -- Added test for XML format output to Queryset.explain(). | Wu Haotian | |
| 2021-06-29 | Fixed #32381 -- Made QuerySet.bulk_update() return the number of objects ↵ | abhiabhi94 | |
| updated. Co-authored-by: Diego Lima <diego.lima@lais.huol.ufrn.br> | |||
| 2021-05-13 | Fixed #32717 -- Fixed filtering of querysets combined with the | operator. | Simon Charette | |
| Address a long standing bug in a Where.add optimization to discard equal nodes that was surfaced by implementing equality for Lookup instances in bbf141bcdc31f1324048af9233583a523ac54c94. Thanks Shaheed Haque for the report. | |||
| 2021-05-04 | Fixed #32693 -- Quoted and lowercased generated column aliases. | Hasan Ramezani | |
| 2021-04-28 | Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery ↵ | Simon Charette | |
| deconstruction. Subquery deconstruction support required implementing complex and expensive equality rules for sql.Query objects for little benefit as the latter cannot themselves be made deconstructible to their reference to model classes. Making Expression @deconstructible and not BaseExpression allows interested parties to conform to the "expression" API even if they are not deconstructible as it's only a requirement for expressions allowed in Model fields and meta options (e.g. constraints, indexes). Thanks Phillip Cutter for the report. This also fixes a performance regression in bbf141bcdc31f1324048af9233583a523ac54c94. | |||
| 2021-04-28 | Refs #32632 -- Added tests for returning a copy when combining Q() objects. | Mariusz Felisiak | |
| 2021-04-22 | Used assertCountEqual() in ExcludeTests.test_exclude_subquery(). | Mariusz Felisiak | |
| 2021-04-21 | Fixed #32650 -- Fixed handling subquery aliasing on queryset combination. | Simon Charette | |
| This issue started manifesting itself when nesting a combined subquery relying on exclude() since 8593e162c9cb63a6c0b06daf045bc1c21eb4d7c1 but sql.Query.combine never properly handled subqueries outer refs in the first place, see QuerySetBitwiseOperationTests.test_subquery_aliases() (refs #27149). Thanks Raffaele Salmaso for the report. | |||
| 2021-04-12 | Fixed #32627 -- Fixed QuerySet.values()/values_list() crash on combined ↵ | Iuri de Silvio | |
| querysets ordered by unannotated columns. | |||
| 2021-03-17 | Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions. | Jonathan Richards | |
| 2021-03-10 | Refs #32508 -- Raised TypeError instead of using "assert" on unsupported ↵ | Mariusz Felisiak | |
| operations for sliced querysets. | |||
| 2021-03-06 | Fixed #24141 -- Added QuerySet.contains(). | Johan Schiff | |
| 2021-02-18 | Fixed #32450 -- Fixed crash when ANDing/ORing an empty Q() with not ↵ | starryrbs | |
| pickleable Q(). Regression in bb0b6e526340e638522e093765e534df4e4393d2. | |||
| 2021-01-19 | Fixed #32357 -- Dropped support for PostgreSQL 9.6 and PostGIS 2.3. | Mariusz Felisiak | |
| 2021-01-14 | Refs #7098 -- Removed support for passing raw column aliases to order_by(). | Mariusz Felisiak | |
| Per deprecation timeline. | |||
| 2021-01-14 | Refs #30988 -- Removed InvalidQuery exception per deprecation timeline. | Mariusz Felisiak | |
| 2020-12-10 | Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵ | Hasan Ramezani | |
| failures. Co-authored-by: Tim Graham <timograham@gmail.com> | |||
| 2020-11-16 | Fixed #31507 -- Added QuerySet.exists() optimizations to compound queries. | David-Wobrock | |
| 2020-11-16 | Refs #27718 -- Doc'd and tested QuerySet.exists() for combined querysets. | David-Wobrock | |
| Supported since 84c1826ded17b2d74f66717fb745fc36e37949fd. | |||
| 2020-11-14 | Fixed #31496 -- Fixed QuerySet.values()/values_list() crash on combined ↵ | David-Wobrock | |
| querysets ordered by annotations. | |||
| 2020-11-06 | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | |
| This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-10-28 | Fixed #32143 -- Used EXISTS to exclude multi-valued relationships. | Simon Charette | |
| As mentioned in the pre-existing split_exclude() docstring EXISTS is easier to optimize for query planers and circumvents the IN (NULL) handling issue. | |||
| 2020-10-28 | Refs #27149 -- Fixed sql.Query identity. | Simon Charette | |
| By making Query subclass BaseExpression in 35431298226165986ad07e91f9d3aca721ff38ec the former defined it's identity based off _construct_args which is not appropriate. | |||
| 2020-10-27 | Fixed some queries tests when primary key values are large. | Tim Graham | |
| On CockroachDB, primary key values stored in these fields are larger than they accept. Fixes: queries.test_bulk_update.BulkUpdateNoteTests.test_multiple_fields, queries.test_bulk_update.BulkUpdateNoteTests.test_inherited_fields, and queries.tests.RelatedLookupTypeTests.test_values_queryset_lookup. | |||
| 2020-10-27 | Removed an obsolete query test that assumes serial pks. | Tim Graham | |
| The code from the original fix (922aba3def68e57c405a0e50d353a790af85b00a) was removed in 419de7b00daabf5e9be064198d370cdbf19b5f2d. | |||
| 2020-10-19 | Fixed #32116 -- Fixed QuerySet.order_by() crash on EmptyQuerySet with ↵ | Hannes Ljungberg | |
| union() on a single non-empty ordered queryset. | |||
| 2020-10-05 | Fixed #32068 -- Added error messages on get() with filters following ↵ | Hasan Ramezani | |
| union(), intersection(), and difference(). | |||
| 2020-10-05 | Refs #32068 -- Added tests for get() following union(), intersection(), and ↵ | Hasan Ramezani | |
| difference(). | |||
| 2020-09-17 | Fixed #31916 -- Fixed combined queryset crash when combining with ordered ↵ | Hasan Ramezani | |
| combined querysets. | |||
| 2020-09-16 | Fixed #31843 -- Fixed pickling named values from QuerySet.values_list(). | Kwist | |
| 2020-09-14 | Fixed #31990 -- Fixed QuerySet.ordered for GROUP BY queries on models with ↵ | Mariusz Felisiak | |
| Meta.ordering. Regression in 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6. Thanks Julien Dutriaux for the report. | |||
| 2020-08-24 | Refs #30897 -- Added test for WAL option to Queryset.explain() on PostgreSQL ↵ | Nick Pope | |
| 13+. | |||
| 2020-07-31 | Fixed #27719 -- Added QuerySet.alias() to allow creating reusable aliases. | Alexandr Tatarinov | |
| QuerySet.alias() allows creating reusable aliases for expressions that don't need to be selected but are used for filtering, ordering, or as a part of complex expressions. Thanks Simon Charette for reviews. | |||
| 2020-07-29 | Fixed #31783 -- Fixed crash when filtering againts "negate" field. | Hasan Ramezani | |
| Thanks Simon Charette for the initial patch. | |||
| 2020-07-07 | Fixed #31767 -- Fixed QuerySet.none() on combined queryset. | Mariusz Felisiak | |
| 2020-07-06 | Fixed #23797 -- Fixed QuerySet.exclude() when rhs is a nullable column. | Jacob Walls | |
| 2020-06-08 | Fixed #31664 -- Reallowed using non-expressions having filterable attribute ↵ | Nicolas Baccelli | |
| as rhs in queryset filters. Regression in 4edad1ddf6203326e0be4bdb105beecb0fe454c4. | |||
| 2020-05-27 | Refs #31614 -- Added test for ordering by OrderBy() of combined queryset ↵ | Mariusz Felisiak | |
| with not selected columns. | |||
| 2020-05-26 | Fixed #31614 -- Fixed aliases ordering by OrderBy() expressions of combined ↵ | Laurent Tramoy | |
| queryset. | |||
| 2020-05-26 | Refs #31614 -- Added test for aliases ordering on combined querysets. | Laurent Tramoy | |
| 2020-05-26 | Used operator.attrgetter() in test_qs_combinators. | Laurent Tramoy | |
| 2020-05-19 | Fixed #31578 -- Dropped support for MySQL 5.6. | Mariusz Felisiak | |
| 2020-05-15 | Refs #31395 -- Relied on setUpTestData() test data isolation in various tests. | Simon Charette | |
| 2020-05-15 | Refs #13227 -- Adjusted a test to avoid making a shared test model unpickable. | Simon Charette | |
| This allowed the Note model to be used in setUpTestData() which requires assigned model instances to be copy.deepcopy()'able. | |||
| 2020-05-13 | Fixed #31580 -- Added error messages on distinct() following union(), ↵ | Hasan Ramezani | |
| intersection(), and difference(). | |||
| 2020-05-08 | Fixed #12990, Refs #27694 -- Added JSONField model field. | sage | |
| Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-05-04 | Changed `'%s' % value` pattern to `str(value)`. | Nick Pope | |
| 2020-04-06 | Fixed #31426 -- Added proper field validation to QuerySet.order_by(). | Simon Charette | |
| Resolve the field reference instead of using fragile regex based string reference validation. | |||
| 2020-04-06 | Refs #7098 -- Deprecated passing raw column aliases to order_by(). | Simon Charette | |
| Now that order_by() has expression support passing RawSQL() can achieve the same result. This was also already supported through QuerySet.extra(order_by) for years but this API is more or less deprecated at this point. | |||
