summaryrefslogtreecommitdiff
path: root/django/db/models/sql/query.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/sql/query.py')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index b505af4efa..eb732f1c6c 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -967,7 +967,7 @@ class Query(BaseExpression):
if reuse_with_filtered_relation and reuse:
reuse_aliases = [
a for a, j in self.alias_map.items()
- if a in reuse and j.equals(join, with_filtered_relation=False)
+ if a in reuse and j.equals(join)
]
else:
reuse_aliases = [