@memoize
def model_profile(model):
    model_profiles = prepare_profiles()

    app = model._meta.app_label
    model_name = model._meta.model_name
    for guess in ('%s.%s' % (app, model_name), '%s.*' % app, '*.*'):
        if guess in model_profiles:
            return model_profiles[guess]
    else:
        return None
Returns cacheops profile for a model
dataset/ETHPy150Open Suor/django-cacheops/cacheops/conf.py/model_profile