diff options
| author | Barry Warsaw | 2014-09-27 20:17:05 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-09-27 20:17:05 -0400 |
| commit | 2fcc921b2cca02976a7b1ca8da4f15d55595974e (patch) | |
| tree | a992a10f3859b892287bf7d2510bdd190cf457db /src/mailman/database/types.py | |
| parent | b3500aefb15c63ccf60ab4508868f770ffd2d309 (diff) | |
| parent | 95fc64b4894e5985bb8d0e5e944b2cda38c9a58c (diff) | |
| download | mailman-2fcc921b2cca02976a7b1ca8da4f15d55595974e.tar.gz mailman-2fcc921b2cca02976a7b1ca8da4f15d55595974e.tar.zst mailman-2fcc921b2cca02976a7b1ca8da4f15d55595974e.zip | |
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..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)) |
