summaryrefslogtreecommitdiff
path: root/src/mailman/database/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/database/types.py')
-rw-r--r--src/mailman/database/types.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py
index 641e065ba..1984b08b5 100644
--- a/src/mailman/database/types.py
+++ b/src/mailman/database/types.py
@@ -29,6 +29,7 @@ __all__ = [
import uuid
from sqlalchemy import Integer
+from sqlalchemy.dialects import postgresql
from sqlalchemy.types import TypeDecorator, CHAR
@@ -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))