mirror of
https://github.com/django/django.git
synced 2025-03-06 23:42:33 +00:00
Refs #33766 -- Removed unused Join.equals().
It's unused now that the specialized FilteredRelation.as_sql logic is no more.
This commit is contained in:
parent
d660cee5bc
commit
1a13161eab
@ -185,10 +185,6 @@ class Join:
|
|||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.identity)
|
return hash(self.identity)
|
||||||
|
|
||||||
def equals(self, other):
|
|
||||||
# Ignore filtered_relation in equality check.
|
|
||||||
return self.identity[:-1] == other.identity[:-1]
|
|
||||||
|
|
||||||
def demote(self):
|
def demote(self):
|
||||||
new = self.relabeled_clone({})
|
new = self.relabeled_clone({})
|
||||||
new.join_type = INNER
|
new.join_type = INNER
|
||||||
@ -239,6 +235,3 @@ class BaseTable:
|
|||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.identity)
|
return hash(self.identity)
|
||||||
|
|
||||||
def equals(self, other):
|
|
||||||
return self.identity == other.identity
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user