Commits

James Crasta committed 4718015

Remove duplicate base class for ModelConverter. Fixes #120.

Comments (0)

Files changed (1)

wtforms/ext/sqlalchemy/orm.py

         return func
     return _inner
 
-class ModelConverterBase(object):
-    def __init__(self, converters, use_mro=True):
-        self.use_mro = use_mro
-
-        if not converters:
-            converters = {}
-
-        for name in dir(self):
-            obj = getattr(self, name)
-            if hasattr(obj, '_converter_for'):
-                for classname in obj._converter_for:
-                    converters[classname] = obj
-
-        self.converters = converters
 
 class ModelConverterBase(object):
     def __init__(self, converters, use_mro=True):