Changes between Initial Version and Version 1 of Ticket #35102, comment 2


Ignore:
Timestamp:
Jan 11, 2024, 2:43:36 AM (11 months ago)
Author:
Mariusz Felisiak

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35102, comment 2

    initial v1  
    22{{{#!diff
    33diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
    4 index c20de5995a..80b8fc8e6a 100644
     4index c20de5995a..0e1c265d9e 100644
    55--- a/django/db/models/expressions.py
    66+++ b/django/db/models/expressions.py
    7 @@ -404,8 +404,9 @@ class BaseExpression:
     7@@ -402,10 +402,13 @@ class BaseExpression:
     8         return clone
     9 
    810     def replace_expressions(self, replacements):
     11+        if not replacements:
     12+            return self
    913         if replacement := replacements.get(self):
    1014             return replacement
Back to Top