Added python_type into GUID (#648)

This commit is contained in:
mark-todd
2021-06-25 15:45:31 +01:00
committed by GitHub
parent c83bdeb0e0
commit 728c160b50

View File

@ -18,8 +18,10 @@ class GUID(TypeDecorator): # pragma: no cover
Uses PostgreSQL's UUID type, otherwise uses
CHAR(36), storing as regular strings.
"""
class UUIDChar(CHAR):
python_type = UUID4
impl = CHAR
impl = UUIDChar
def load_dialect_impl(self, dialect):
if dialect.name == "postgresql":