def topic_detail(request, slug, topic_id, template_name='groups/topics/topic_detail.html'):
 group = get_object_or_404(Group, slug=slug, is_active=True)
 topic = get_object_or_404(GroupTopic, pk=topic_id, is_active=True)
 message_form = GroupMessageForm()
 return render(request, template_name, {'group': group, 'topic': topic, 'message_form': message_form})

def topic_detail ( request , slug , topic_id , template_name = 'groups/topics/topic_detail.html' ) : group = get_object_or_404 ( Group , slug = slug , is_active = True ) topic = get_object_or_404 ( GroupTopic , pk = topic_id , is_active = True ) message_form = GroupMessageForm ( ) return render ( request , template_name , { 'group' : group , 'topic' : topic , 'message_form' : message_form } )
returns a group topic detail page .