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 impl = sa.UnicodeText
def __init__(self): def __init__(self, *args, **kwargs):
if json is None: if json is None:
raise ImproperlyConfigured( raise ImproperlyConfigured(
'JSONType needs anyjson package installed.' 'JSONType needs anyjson package installed.'
) )
super(JSONType, self).__init__(*args, **kwargs)
def load_dialect_impl(self, dialect): def load_dialect_impl(self, dialect):
if dialect.name == 'postgresql': if dialect.name == 'postgresql':