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.
dataset/ETHPy150Open nathanborror/django-basic-apps/basic/groups/views/topics.py/topic_detail