code: def update_type(self, request, *args, **kwargs):
          
          self.object = self.get_object()
          success_url = self.get_success_url()
          self.object.type = self.target_type
          self.object.save()
          messages.success(self.request, self.success_message)
          return HttpResponseRedirect(success_url)
docs: Updates the type of the considered topic and retirects the user to the success URL.