| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-07-23 | Removed unnecessary code in Model.__init__(). | Jon Dufresne | |
| As is_related_object is True, the val variable is unused for the remainder of the method. Unnecessary since 53da1e47942f22a56e761d786ba89d05ca55a224. | |||
| 2019-07-12 | Fixed #30602 -- Made Extract raise ValueError when using unsupported lookups ↵ | Hasan Ramezani | |
| for DurationField. | |||
| 2019-07-11 | Refs #30557 -- Fixed crash of ordering by ptr fields when Meta.ordering ↵ | Mariusz Felisiak | |
| contains F() expressions. Thanks Can Sarıgöl for the report. Follow up to 8c5f9906c56ac72fc4f13218dd90bdf9bc8a248b. | |||
| 2019-07-11 | Fixed #30557 -- Fixed crash of ordering by ptr fields when Meta.ordering ↵ | Hasan Ramezani | |
| contains expressions. | |||
| 2019-07-11 | Fixed #28289 -- Fixed crash of RawSQL annotations on inherited model fields. | can | |
| 2019-07-10 | Fixed #30628 -- Adjusted expression identity to differentiate bound fields. | Simon Charette | |
| Expressions referring to different bound fields should not be considered equal. Thanks Julien Enselme for the detailed report. Regression in bc7e288ca9554ac1a0a19941302dea19df1acd21. | |||
| 2019-07-08 | Fixed #30397 -- Added app_label/class interpolation for names of indexes and ↵ | can | |
| constraints. | |||
| 2019-07-08 | Refs #29444 -- Added support for fetching a returned non-integer insert ↵ | Johannes Hoppe | |
| values on Oracle. This is currently not actively used, since the ORM will ask the SQL compiler to only return auto fields. | |||
| 2019-07-05 | Fixed #30613 -- Moved index name validation to system checks. | can | |
| 2019-06-28 | Fixed #30400 -- Improved typography of user facing strings. | Jon Dufresne | |
| Thanks Claude Paroz for assistance with translations. | |||
| 2019-06-28 | Fixed #28408 -- Added error message when updating with annotated expressions ↵ | can | |
| on joined fields. Co-Authored-By: Simon Charette <charette.s@gmail.com> | |||
| 2019-06-25 | Fixed #30477 -- Made reverse lookup use Field.get_db_prep_value() from the ↵ | can | |
| target field. | |||
| 2019-06-21 | Fixed #30421 -- Allowed symmetrical intermediate table for self-referential ↵ | Nadège Michel | |
| ManyToManyField. | |||
| 2019-06-19 | Fixed #29834 -- Fixed column mismatch crash with ↵ | can | |
| QuerySet.values()/values_list() and order_by() on combined querysets. | |||
| 2019-06-19 | Fixed #30572 -- Prevented values()/values_list() on combined queryset from ↵ | Mariusz Felisiak | |
| mutating the list of columns in querysets. | |||
| 2019-06-10 | Fixed #30548 -- Improved exception when expression contains mixed types. | CruxBox | |
| 2019-06-05 | Fixed #30542 -- Fixed crash of numerical aggregations with filter. | Étienne Beaulé | |
| Filters in annotations crashed when used with numerical-type aggregations (i.e. Avg, StdDev, and Variance). This was caused as the source expressions no not necessarily have an output_field (such as the filter field), which lead to an AttributeError: 'WhereNode' object has no attribute output_field. Thanks to Chuan-Zheng Lee for the report. Regression in c690afb873cac8035a3cb3be7c597a5ff0e4b261 and two following commits. | |||
| 2019-05-31 | Fixed #26192 -- Fixed crash of ordering by constants on PostgreSQL. | Mariusz Felisiak | |
| Thanks Simon Charette for the review. | |||
| 2019-05-28 | Simplified Model.save() a bit. | 葛汉斌 | |
| 2019-05-23 | Fixed #30501 -- Preventing QuerySet.reverse() from mutating expressions in ↵ | Mariusz Felisiak | |
| QuerySet.order_by and Meta.ordering. | |||
| 2019-05-21 | Fixed #28147 -- Fixed loss of assigned parent when saving child after parent. | Rob | |
| Thanks Erwin Junge for the initial patch. | |||
| 2019-05-21 | Refs #29396, #30494 -- Reduced code duplication in year lookups. | Simon Charette | |
| 2019-05-21 | Fixed #29396 -- Added indirect values support to __year lookups. | Simon Charette | |
| Thanks Windson Yang for the initial patch. | |||
| 2019-05-21 | Fixed #30494 -- Disabled __year lookup optimization for indirect values. | Simon Charette | |
| The previous heuristics were naively enabling the BETWEEN optimization on successful cast of the first rhs SQL params to an integer while it was not appropriate for a lot of database resolved expressions. Thanks Alexey Chernov for the report. | |||
| 2019-05-18 | Fixed #30463 -- Fixed crash of deprecation message when Meta.ordering ↵ | ruchit2801 | |
| contains expressions. Regression in 1b1f64ee5a78cc217fead52cbae23114502cf564. | |||
| 2019-05-16 | Fixed #30482 -- Prevented unnecessary evaluation of lookup.queryset in ↵ | Iain Watts | |
| prefetch_related_objects(). | |||
| 2019-05-13 | Fixed #30436 -- Added check that on_delete is callable in ForeignKey and ↵ | Rob | |
| OneToOneField. | |||
| 2019-05-12 | Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows. | Amir Hadi | |
| Co-authored-by: Tim Graham <timograham@gmail.com> Co-authored-by: Patryk Zawadzki <patrys@room-303.com> Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2019-05-07 | Fixed #30349 -- Fixed QuerySet.exclude() on FilteredRelation. | Rob | |
| Using annotated FilteredRelations raised a FieldError when coupled with exclude(). This is due to not passing filtered relation fields to the subquery created in split_exclude(). We fixed this issue by passing the filtered relation data to the newly created subquery. Secondly, in the case where an INNER JOIN is used in the excluded subquery, the ORM would trim the filtered relation INNER JOIN in attempt to simplify the query. This will also remove the ON clause filters generated by the FilteredRelation. We added logic to not trim the INNER JOIN if it is from FilteredRelation. | |||
| 2019-05-07 | Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the ↵ | Tobias Kunze | |
| field the relation points to. | |||
| 2019-05-06 | Fixed #30339 -- Made Model.delete(keep_parents=True) preserves nested parent ↵ | Stephen Brown | |
| reverse relationships. Thanks Simon Charette for the review. | |||
| 2019-05-03 | Fixed #29692 -- Fixed removing ordering parts for multiline RawSQL expressions. | can | |
| 2019-05-02 | Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path. | Mykola Kokalko | |
| 2019-05-01 | Fixed #30409 -- Allowed using foreign key's attnames in ↵ | zeyneloz | |
| unique/index_together and Index's fields. | |||
| 2019-04-30 | Fixed #30412 -- Fixed crash when adding check constraints with OR'ed ↵ | can | |
| condition on Oracle and SQLite. | |||
| 2019-04-29 | Simplified Field.contribute_to_class(). | Jon Dufresne | |
| 2019-04-23 | Fixed #29810 -- Fixed crash of select_related() on FilteredRelation with ↵ | can | |
| empty result. | |||
| 2019-04-19 | Fixed #30328 -- Fixed crash of IntegerField.validators when limit_value in a ↵ | Scott Fitsimones | |
| custom validator is callable. | |||
| 2019-04-18 | Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, ↵ | Ramiro Morales | |
| comments and hints. | |||
| 2019-04-18 | Fixed typos in docs, comments, and exception messages. | Ville Skyttä | |
| 2019-04-18 | Fixed #30335, #29139 -- Fixed crash when ordering or aggregating over a ↵ | can | |
| nested JSONField key transform. | |||
| 2019-04-17 | Fixed #30191 -- Selected only referenced fields during cascade deletion. | Simon Charette | |
| The non-referenced fields can only be deferred if no deletion signals receivers are connected for their respective model as connected as these receivers might expect all fields of the deleted model to be present. Thanks Ed Morley for the report. | |||
| 2019-04-17 | Refs #18676 -- Enabled fast-delete for m2m_changed senders. | Simon Charette | |
| There's no reason to disable fast-delete when an intermediary many-to-many model has connected m2m_changed receivers because the signal is only sent when related manager's clear() and remove() methods are directly called. This must have been overlooked in 1cd6e04cd4f768bcd4385b75de433d497d938f82 given no regression tests fail when m2m_changed is not taken into consideration to determine if fast-delete can be enabled. | |||
| 2019-04-16 | Fixed #30368 -- Fixed prefetch_related() for GenericForeignKey when PK is ↵ | Vinny Do | |
| also a FK. | |||
| 2019-04-15 | Refs #23758 -- Used RecursionError instead of RuntimeError to raise nested ↵ | Simon Charette | |
| subquery errors. RecursionError was introduced in Python 3.5 and subclasses RuntimeError. | |||
| 2019-04-15 | Refs #27149 -- Based recursive nested subquery detection on ↵ | Simon Charette | |
| sys.getrecursionlimit(). This makes sure the test_avoid_infinite_loop_on_too_many_subqueries test doesn't fail on systems with a non-default recursion limit. | |||
| 2019-04-15 | Fixed #30325 -- Reverted "Fixed #29725 -- Removed unnecessary join in ↵ | Mariusz Felisiak | |
| QuerySet.count() and exists() on a many-to-many relation." This reverts commit 1299421cadc4fcf63585f2f88337078e43e660e0 due to a regression with custom managers. | |||
| 2019-04-14 | Fixed #30343 -- Fixed prefetch_related() for GenericForeignKey when PK of ↵ | Mariusz Felisiak | |
| related field is UUIDField. | |||
| 2019-04-08 | Fixed #30330 -- Fixed setting of primary key to None during fast-delete. | Florian Apolloner | |
| Regression in bc7dd8490b882b2cefdc7faf431dc64c532b79c9. | |||
| 2019-04-03 | Fixed typo in django/db/models/query_utils.py comment. | David Beitey | |
