mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21643 -- repeated execution of qs with F() + timedelta
Thanks Tim Graham for review.
This commit is contained in:
committed by
Anssi Kääriäinen
parent
b80a8357d6
commit
7f2485b4d1
@@ -111,6 +111,7 @@ class SQLEvaluator(object):
|
||||
def evaluate_date_modifier_node(self, node, qn, connection):
|
||||
timedelta = node.children.pop()
|
||||
sql, params = self.evaluate_node(node, qn, connection)
|
||||
node.children.append(timedelta)
|
||||
|
||||
if (timedelta.days == timedelta.seconds == timedelta.microseconds == 0):
|
||||
return sql, params
|
||||
|
||||
Reference in New Issue
Block a user