fix comparing wrapped model instances
This commit is contained in:
parent
e3c8947883
commit
3e36f5b7a3
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class ModelInstanceWrapper(BaseWrapper):
|
|||
self._initial_values[field] = getattr(self._obj, field.name)
|
||||
|
||||
def __eq__(self, other):
|
||||
if type(other) == ModelWrapper:
|
||||
if isinstance(other, BaseWrapper):
|
||||
if type(self._obj) is not type(other._obj): # noqa
|
||||
return False
|
||||
elif type(self._obj) is not type(other):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue