def topic_list(request, slug, template_name='groups/topics/topic_list.html'):
 group = get_object_or_404(Group, slug=slug, is_active=True)
 topic_list = GroupTopic.objects.filter(group=group, is_active=True)
 return render(request, template_name, {'group': group, 'topic_list': topic_list})

def topic_list ( request , slug , template_name = 'groups/topics/topic_list.html' ) : group = get_object_or_404 ( Group , slug = slug , is_active = True ) topic_list = GroupTopic . objects . filter ( group = group , is_active = True ) return render ( request , template_name , { 'group' : group , 'topic_list' : topic_list } )
returns a group topic list page .