Loading django/db/backends/__init__.py +2 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,8 @@ class BaseDatabaseWrapper(object): def __ne__(self, other): return not self == other __hash__ = object.__hash__ def __hash__(self): return hash(self.alias) def get_connection_params(self): raise NotImplementedError Loading django/db/models/fields/__init__.py +2 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,8 @@ class Field(object): return self.creation_counter < other.creation_counter return NotImplemented __hash__ = object.__hash__ def __hash__(self): return hash(self.creation_counter) def __deepcopy__(self, memodict): # We don't have to deepcopy very much here, since most things are not Loading django/db/models/fields/files.py +0 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ class FieldFile(File): return not self.__eq__(other) def __hash__(self): # Required because we defined a custom __eq__. return hash(self.name) # The standard File contains most of the necessary properties, but Loading django/dispatch/saferef.py +2 −1 Original line number Diff line number Diff line Loading @@ -152,7 +152,8 @@ class BoundMethodWeakref(object): __repr__ = __str__ __hash__ = object.__hash__ def __hash__(self): return hash(self.key) def __bool__( self ): """Whether we are still a valid reference""" Loading django/test/html.py +2 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,8 @@ class Element(object): return False return True __hash__ = object.__hash__ def __hash__(self): return hash((self.name,) + tuple(a for a in self.attributes)) def __ne__(self, element): return not self.__eq__(element) Loading Loading
django/db/backends/__init__.py +2 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,8 @@ class BaseDatabaseWrapper(object): def __ne__(self, other): return not self == other __hash__ = object.__hash__ def __hash__(self): return hash(self.alias) def get_connection_params(self): raise NotImplementedError Loading
django/db/models/fields/__init__.py +2 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,8 @@ class Field(object): return self.creation_counter < other.creation_counter return NotImplemented __hash__ = object.__hash__ def __hash__(self): return hash(self.creation_counter) def __deepcopy__(self, memodict): # We don't have to deepcopy very much here, since most things are not Loading
django/db/models/fields/files.py +0 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,6 @@ class FieldFile(File): return not self.__eq__(other) def __hash__(self): # Required because we defined a custom __eq__. return hash(self.name) # The standard File contains most of the necessary properties, but Loading
django/dispatch/saferef.py +2 −1 Original line number Diff line number Diff line Loading @@ -152,7 +152,8 @@ class BoundMethodWeakref(object): __repr__ = __str__ __hash__ = object.__hash__ def __hash__(self): return hash(self.key) def __bool__( self ): """Whether we are still a valid reference""" Loading
django/test/html.py +2 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,8 @@ class Element(object): return False return True __hash__ = object.__hash__ def __hash__(self): return hash((self.name,) + tuple(a for a in self.attributes)) def __ne__(self, element): return not self.__eq__(element) Loading