Find model_name among indicated Django apps and return Model class

    Examples:
        To find models in an app called "miner":

        >>> find_model('WikiItem', 'miner')
        >>> find_model('Connection', 'miner')
        >>> find_model('InvalidModelName')

def find_model(model_name, apps=settings.INSTALLED_APPS, fuzziness=0):
    """Find model_name among indicated Django apps and return Model class

    Examples:
        To find models in an app called "miner":

        >>> find_model('WikiItem', 'miner')
        >>> find_model('Connection', 'miner')
        >>> find_model('InvalidModelName')

    """
    # if it looks like a file system path rather than django project.app.model path the return it as a string
    if '/' in model_name:
        return model_name
    if not apps and isinstance(model_name, basestring) and '.' in model_name:
        apps = [model_name.split('.')[0]]
    apps = util.listify(apps or settings.INSTALLED_APPS)
    for app in apps:
        # print 'getting %r, from app %r' % (model_name, app)
        model = get_model(model=model_name, app=app, fuzziness=fuzziness)
        if model:
            return model
    return None