diff options
Diffstat (limited to 'src/mailman/database/types.py')
| -rw-r--r-- | src/mailman/database/types.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py index 641e065ba..eec6df6d5 100644 --- a/src/mailman/database/types.py +++ b/src/mailman/database/types.py @@ -30,6 +30,7 @@ import uuid from sqlalchemy import Integer from sqlalchemy.types import TypeDecorator, CHAR +from sqlalchemy.dialects import postgresql @@ -68,7 +69,7 @@ class UUID(TypeDecorator): def load_dialect_impl(self, dialect): if dialect.name == 'postgresql': - return dialect.type_descriptor(UUID()) + return dialect.type_descriptor(postgresql.UUID()) else: return dialect.type_descriptor(CHAR(32)) |
