summaryrefslogtreecommitdiff
path: root/django/db/models/sql/datastructures.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2021-02-08 11:48:06 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-28 20:42:20 +0200
commita6c79f4987c020cc9e96d4c5fc47730cd1031b4c (patch)
tree8fbaae74fb02e8d0256482221be6316e1a548b6d /django/db/models/sql/datastructures.py
parent68e876c0953f882e54dddd49ef727f9e38e2d0d1 (diff)
downloaddjango-a6c79f4987c020cc9e96d4c5fc47730cd1031b4c.tar.gz
Removed unused with_filtered_relation argument from .equals()
Unused since bbf141bcdc31f1324048af9233583a523ac54c94.
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