diff --git a/peewee.py b/peewee.py index b8be051c0..69fe2dd8d 100644 --- a/peewee.py +++ b/peewee.py @@ -1245,6 +1245,9 @@ def __init__(self, node, alias): super(Alias, self).__init__(node) self._alias = alias + def __hash__(self): + return hash(self._alias) + def alias(self, alias=None): if alias is None: return self.node