def METHOD_NAME(self, request, thread_id):
    thread = get_object_or_404(Thread, pk=thread_id, users__in=[request.user])
    thread.mark_read(request.user)
    return render(request, 'messaging/thread_detail.html', context=self.get_context(thread))