diff options
| author | willzhao <gnomeek@outlook.com> | 2023-08-31 07:51:44 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-01 11:25:00 +0200 |
| commit | acfb42752259c3f920ffd20d6eef83b3c6f75cf7 (patch) | |
| tree | 552ba3871fcacd330d58a91c91a17fddaa85bf46 /django | |
| parent | 55a0b9c32ebae957b95a9a55846692837e2ff39b (diff) | |
[4.2.x] Fixed #34803 -- Fixed queryset crash when filtering againts deeply nested OuterRef annotations.
Thanks Pierre-Nicolas Rigal for the report.
Regression in c67ea79aa981ae82595d89f8018a41fcd842e7c9.
Backport of 9cc0d7f7f85cecc3ad15bbc471fe6a08e4f515b6 from main
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/expressions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py index c6443892e2..cc78ac8773 100644 --- a/django/db/models/expressions.py +++ b/django/db/models/expressions.py @@ -879,6 +879,7 @@ class ResolvedOuterRef(F): class OuterRef(F): contains_aggregate = False + contains_over_clause = False def resolve_expression(self, *args, **kwargs): if isinstance(self.name, self.__class__): |
