def get_context_data(self, **kwargs):
        """ Returns the context data to provide to the template. """
        context = super().get_context_data(**kwargs)
        context['question'] = self.question
        topic = self.get_object()
        context['forum'] = topic.forum
        return context
def get_context_data ( self , ** kwargs ) : context = super ( ) . get_context_data ( ** kwargs ) context [ 'question' ] = self . question topic = self . get_object ( ) context [ 'forum' ] = topic . forum return context
Returns the context data to provide to the template.