Changes between Initial Version and Version 1 of Ticket #35102, comment 2
- Timestamp:
- Jan 11, 2024, 2:43:36 AM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35102, comment 2
initial v1 2 2 {{{#!diff 3 3 diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py 4 index c20de5995a.. 80b8fc8e6a1006444 index c20de5995a..0e1c265d9e 100644 5 5 --- a/django/db/models/expressions.py 6 6 +++ b/django/db/models/expressions.py 7 @@ -404,8 +404,9 @@ class BaseExpression: 7 @@ -402,10 +402,13 @@ class BaseExpression: 8 return clone 9 8 10 def replace_expressions(self, replacements): 11 + if not replacements: 12 + return self 9 13 if replacement := replacements.get(self): 10 14 return replacement