code: def get_topic(self):
          
          pk = self.kwargs.get(self.topic_pk_url_kwarg, None)
          if not pk:
              return
          if not hasattr(self, '_topic'):
              self._topic = get_object_or_404(Topic, pk=pk)
          return self._topic
docs: Returns the considered topic if applicable.