Merge pull request #58 from thusoy/master

Add missing call to super in JSONType.__init__
This commit is contained in:
Konsta Vesterinen
2014-01-12 02:03:02 -08:00

View File

@@ -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':