Instance loaders

class import_export.instance_loaders.BaseInstanceLoader(resource, dataset=None)

Base abstract implementation of instance loader.

class import_export.instance_loaders.ModelInstanceLoader(resource, dataset=None)

Instance loader for Django model.

Lookup for model instance by import_id_fields.

class import_export.instance_loaders.CachedInstanceLoader(*args, **kwargs)

Loads all possible model instances in dataset avoid hitting database for every get_instance call.

This instance loader work only when there is one import_id_fields field.