diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-09-14 20:07:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 20:07:44 +0200 |
| commit | e11d05e0b488a3ff2b3c9d8f2e1e50f471750d6e (patch) | |
| tree | a37382769da0d54ae0a05cd310edc139f2f26ea3 /docs | |
| parent | 5fab16392fc00702a5d0288378892ec48fe67dc6 (diff) | |
Fixed #31990 -- Fixed QuerySet.ordered for GROUP BY queries on models with Meta.ordering.
Regression in 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6.
Thanks Julien Dutriaux for the report.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.1.2.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/3.1.2.txt b/docs/releases/3.1.2.txt index 1243654bfb..f9e45370ab 100644 --- a/docs/releases/3.1.2.txt +++ b/docs/releases/3.1.2.txt @@ -11,3 +11,8 @@ Bugfixes * Fixed a bug in Django 3.1 where ``FileField`` instances with a callable storage were not correctly deconstructed (:ticket:`31941`). + +* Fixed a regression in Django 3.1 where the :attr:`.QuerySet.ordered` + attribute returned incorrectly ``True`` for ``GROUP BY`` queries (e.g. + ``.annotate().values()``) on models with ``Meta.ordering``. A model's + ``Meta.ordering`` doesn't affect such queries (:ticket:`31990`). |
