diff --git a/src/c3nav/editor/wrappers.py b/src/c3nav/editor/wrappers.py index e4f69aa5..7a49f53b 100644 --- a/src/c3nav/editor/wrappers.py +++ b/src/c3nav/editor/wrappers.py @@ -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):