mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Merged hash() calls.
Thanks Simon Charette for the review.
This commit is contained in:
committed by
Tim Graham
parent
fc6528b25a
commit
2b5a511bd9
@@ -1416,7 +1416,7 @@ class Prefetch:
|
||||
return isinstance(other, Prefetch) and self.prefetch_to == other.prefetch_to
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.__class__) ^ hash(self.prefetch_to)
|
||||
return hash((self.__class__, self.prefetch_to))
|
||||
|
||||
|
||||
def normalize_prefetch_lookups(lookups, prefix=None):
|
||||
|
||||
Reference in New Issue
Block a user