

@register.inclusion_tag('admin/templatetags/ralph_summary.html')
def ralph_summary():
    models = ['data_center.DataCenterAsset', 'back_office.BackOfficeAsset', 'licences.Licence', 'supports.Support', 'domains.Domain', 'accounts.RalphUser']
    results = []
    for model_name in models:
        (app, model) = model_name.split('.')
        model = apps.get_model(app, model)
        meta = model_name._meta
        results.append({
            'label': meta.verbose_name_plural,
            'count': model.objects.count(),
            'class': slugify(meta.verbose_name_plural),
            'icon': 'icon',
            'url_name': 'admin:{}_{}_changelist'.format(meta.app_label, meta.model_name),
        })
    return {
        'results': results,
    }

dataset/ETHPy150Open allegro/ralph/src/ralph/admin/templatetags/dashboard_tags.py ralph_summary/VarMisuse@71/132 `model`->`model_name`