def METHOD_NAME(self, request, pk):
    obj = self.get_object()
    history_entry_id = request.QUERY_PARAMS.get('id', None)
    history_entry = services.get_history_queryset_by_model_instance(obj).filter(id=history_entry_id).first()
    if history_entry is None:
        return response.NotFound()
    self.check_permissions(request, 'undelete_comment', history_entry)
    if history_entry is None:
        return response.NotFound()
    if not history_entry.delete_comment_date and not history_entry.delete_comment_user:
        return response.BadRequest({"error": _("Comment not deleted")})
    history_entry.delete_comment_date = None
    history_entry.delete_comment_user = None
    history_entry.save()
    return response.Ok()