diff --git a/sqlalchemy_utils/primitives/country.py b/sqlalchemy_utils/primitives/country.py index d874182..bae9ea5 100644 --- a/sqlalchemy_utils/primitives/country.py +++ b/sqlalchemy_utils/primitives/country.py @@ -85,6 +85,9 @@ class Country(object): else: return NotImplemented + def __hash__(self): + return hash(self.code) + def __ne__(self, other): return not (self == other)