From 41a5c68d3e2c99fd4cb4cae5a898afbf137cfd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarjei=20Hus=C3=B8y?= Date: Thu, 9 Jan 2014 22:13:57 +0100 Subject: [PATCH 1/3] Add missing call to super in JSONType.__init__ Fixes https://github.com/kvesteri/sqlalchemy-utils/issues/57. --- sqlalchemy_utils/types/json.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlalchemy_utils/types/json.py b/sqlalchemy_utils/types/json.py index 779b09b..490f420 100644 --- a/sqlalchemy_utils/types/json.py +++ b/sqlalchemy_utils/types/json.py @@ -54,11 +54,12 @@ class JSONType(sa.types.TypeDecorator): """ impl = sa.UnicodeText - def __init__(self): + def __init__(self, *args, **kwargs): if json is None: raise ImproperlyConfigured( 'JSONType needs anyjson package installed.' ) + super(JSONType, self).__init__(*args, **kwargs) def load_dialect_impl(self, dialect): if dialect.name == 'postgresql': From 22cc844a757a4363407ac151c6b3c4a999906392 Mon Sep 17 00:00:00 2001 From: kelvinhammond Date: Sat, 11 Jan 2014 20:54:00 -0500 Subject: [PATCH 2/3] Added URLType to global import --- sqlalchemy_utils/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlalchemy_utils/__init__.py b/sqlalchemy_utils/__init__.py index dea1033..cd71907 100644 --- a/sqlalchemy_utils/__init__.py +++ b/sqlalchemy_utils/__init__.py @@ -46,6 +46,7 @@ from .types import ( ScalarListException, TimezoneType, TSVectorType, + URLType, UUIDType, ) @@ -100,6 +101,7 @@ __all__ = ( ScalarListType, TimezoneType, TSVectorType, + URLType UUIDType, database_exists, create_database, From 79caf2bd5f67ecb70ccbe6593328d6b96680dc09 Mon Sep 17 00:00:00 2001 From: Kelvin Hammond Date: Sun, 12 Jan 2014 08:51:47 -0600 Subject: [PATCH 3/3] Fixed Typo for URLType --- sqlalchemy_utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlalchemy_utils/__init__.py b/sqlalchemy_utils/__init__.py index cd71907..b6afde6 100644 --- a/sqlalchemy_utils/__init__.py +++ b/sqlalchemy_utils/__init__.py @@ -101,7 +101,7 @@ __all__ = ( ScalarListType, TimezoneType, TSVectorType, - URLType + URLType, UUIDType, database_exists, create_database,