django1/django/db/models
Mariusz Felisiak 6b178a3e93
Fixed #31217 -- Made QuerySet.values()/values_list() group by not selected annotations with aggregations used in order_by().
Regression in 59b4e99dd0.

Thanks Jon Dufresne for the report and Simon Charette for the review.
2020-02-03 07:48:11 +01:00
..
fields Cached ForeignObject.(local/foreign/reverse)_related_fields properties. 2020-01-31 14:07:52 +01:00
functions Removed redundant names in django.db.models.functions.__all__. 2019-10-02 13:07:14 +02:00
sql Fixed #31217 -- Made QuerySet.values()/values_list() group by not selected annotations with aggregations used in order_by(). 2020-02-03 07:48:11 +01:00
__init__.py Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading deletions while protecting direct ones. 2019-11-19 10:55:05 +01:00
aggregates.py Fixed #30665 -- Added support for distinct argument to Avg() and Sum(). 2019-07-31 11:22:50 +02:00
base.py Fixed #29998 -- Allowed multiple OneToOneFields to the parent model. 2020-01-16 08:06:16 +01:00
constants.py Refactored qs.add_q() and utils/tree.py 2013-03-13 10:44:49 +02:00
constraints.py Fixed #30484 -- Added conditional expressions support to CheckConstraint. 2019-11-21 11:56:35 +01:00
deletion.py Fixed #31219 -- Fixed object deletion crash for nested protected related objects. 2020-01-31 09:07:58 +01:00
enums.py Fixed #31154 -- Added support for using enumeration types in templates. 2020-01-10 07:52:06 +01:00
expressions.py Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on aggregations. 2019-12-19 10:04:56 +01:00
indexes.py Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols). 2019-11-21 11:56:35 +01:00
lookups.py Refs #25367 -- Moved conditional expression wrapping to the Exact lookup. 2019-11-21 11:56:35 +01:00
manager.py Fixed #28982 -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
options.py Used model's Options.label/label_lower where applicable. 2020-01-29 12:09:20 +01:00
query.py Changed re-raising an exception to use bare raise syntax where appropriate. 2020-01-20 11:44:28 +01:00
query_utils.py Simplified DeferredAttribute.__get__() a bit. 2020-01-29 16:06:56 +01:00
signals.py Fixed imports per isort 4.3.0. 2018-02-01 09:29:46 +01:00
utils.py Refs #31046 -- Added django.db.models.utils.resolve_callables(). 2019-12-03 19:47:32 +01:00