def get_qualified_name ( _object ) : module = _object . __module__ if hasattr ( _object , '__name__' ) : _class = _object . __name__ else : _class = _object . __class__ . __name__ return module + '.' + _class
django python returns object not name
Return the Fully Qualified Name from an instance or class .
def get_qualified_name(_object):
    """Return the Fully Qualified Name from an instance or class."""
    module = _object.__module__
    if hasattr(_object, '__name__'):
        _class = _object.__name__

    else:
        _class = _object.__class__.__name__

    return module + '.' + _class