def my_import(name):
    
    mod = __import__(name)
    components = name.split('.')
    for comp in components[1:]:
        mod = getattr(mod, comp)
    return mod
Returns the fixed embedded_model this field was initialized
dataset/ETHPy150Open ipython/ipython-py3k/docs/sphinxext/inheritance_diagram.py/my_import--crossover with--dataset/ETHPy150Open django-nonrel/djangotoolbox/djangotoolbox/fields.py/EmbeddedModelField.stored_model