def page_list(request, slug, template_name='groups/pages/page_list.html'):
 group = get_object_or_404(Group, slug=slug)
 return render(request, template_name, {'group': group, 'page_list': group.pages.all()})

def page_list ( request , slug , template_name = 'groups/pages/page_list.html' ) : group = get_object_or_404 ( Group , slug = slug ) return render ( request , template_name , { 'group' : group , 'page_list' : group . pages . all ( ) } )
returns a list of pages for a group .