summaryrefslogtreecommitdiff
path: root/django/db/models/sql/datastructures.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/sql/datastructures.py')
-rw-r--r--django/db/models/sql/datastructures.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/django/db/models/sql/datastructures.py b/django/db/models/sql/datastructures.py
index c9598b3bd4..85278cd8d3 100644
--- a/django/db/models/sql/datastructures.py
+++ b/django/db/models/sql/datastructures.py
@@ -132,9 +132,8 @@ class Join:
def __hash__(self):
return hash(self.identity)
- def equals(self, other, with_filtered_relation):
- if with_filtered_relation:
- return self == other
+ def equals(self, other):
+ # Ignore filtered_relation in equality check.
return self.identity[:-1] == other.identity[:-1]
def demote(self):
@@ -183,5 +182,5 @@ class BaseTable:
def __hash__(self):
return hash(self.identity)
- def equals(self, other, with_filtered_relation):
+ def equals(self, other):
return self.identity == other.identity