mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed #29172 -- Fixed crash with Window expression in a subquery.
This commit is contained in:
parent
ba4a986240
commit
fa352626c2
3 changed files with 20 additions and 2 deletions
|
@ -315,8 +315,10 @@ class BaseExpression:
|
|||
|
||||
def relabeled_clone(self, change_map):
|
||||
clone = self.copy()
|
||||
clone.set_source_expressions(
|
||||
[e.relabeled_clone(change_map) for e in self.get_source_expressions()])
|
||||
clone.set_source_expressions([
|
||||
e.relabeled_clone(change_map) if e is not None else None
|
||||
for e in self.get_source_expressions()
|
||||
])
|
||||
return clone
|
||||
|
||||
def copy(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue