While we need links on different column we can use “get_list_display_links” function default given by Django framework and we simply define links with condition also like: 1 2 3 4 5 6 7 def get_list_display_links(self, request, list_display):     group, created = Group.objects.get_or_create(name=“Administrator”)     if True if group in request.user.groups.all() else False or request.user.is_superuser:         return [‘get_full_name’, ’email’]     return None […]

So here comes a simple template filter which checks if the user belongs to a given group. It can be easily extended to take into account more groups. – See more at: http://www.abidibo.net/blog/2014/05/22/check-if-user-belongs-group-django-templates/#sthash.i1cF0nIZ.dpuf 1 2 3 4 5 6 7 8 from django import template from django.contrib.auth.models import Group register = template.Library() @register.filter(name=‘has_group’) def has_group(user, […]