

def user_licence(self, item):
    licences = item.licences.select_related('licence')
    if licences:
        result = ['<a href="{}">{}</a><br />'.format(reverse('admin:licences_licence_change', args=(licence.licence.pk,)), licence.licence) for licence in licences]
        return [''.join(result)]
    else:
        return []

dataset/ETHPy150Open allegro/ralph/src/ralph/accounts/admin.py AssetList.user_licence/original