Add Importer.enum
convenience attribute
This commit is contained in:
parent
8dca80edc6
commit
5ad40abc81
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue