Add Importer.enum convenience attribute

This commit is contained in:
Lance Edgar 2017-03-27 21:02:46 -05:00
parent 8dca80edc6
commit 5ad40abc81

View file

@ -84,6 +84,7 @@ class Importer(object):
def __init__(self, config=None, fields=None, key=None, **kwargs): def __init__(self, config=None, fields=None, key=None, **kwargs):
self.config = config self.config = config
self.enum = config.get_enum()
self.fields = fields or self.supported_fields self.fields = fields or self.supported_fields
if key is not None: if key is not None:
self.key = key self.key = key