def group_members(request, slug, template_name='groups/group_members.html'):
 group = get_object_or_404(Group, slug=slug, is_active=True)
 member_list = group.members.all()
 return render(request, template_name, {'group': group, 'member_list': member_list})

def group_members ( request , slug , template_name = 'groups/group_members.html' ) : group = get_object_or_404 ( Group , slug = slug , is_active = True ) member_list = group . members . all ( ) return render ( request , template_name , { 'group' : group , 'member_list' : member_list } )
returns members of a group .