"""View to show records from Task Reschedule table."""
    route_base = "/taskreschedule"
    datamodel = AirflowModelView.CustomSQLAInterface(models.TaskReschedule)  
    related_views = [DagRunModelView]
    class_permission_name = permissions.RESOURCE_TASK_RESCHEDULE
    method_permission_name = {
        "list": "read",
    }
    base_permissions = [
        permissions.ACTION_CAN_READ,
        permissions.ACTION_CAN_ACCESS_MENU,
    ]
    list_columns = [
        "id",
        "dag_id",
        "run_id",
        "dag_run.execution_date",
        "task_id",
        "map_index",
        "try_number",
        "start_date",
        "end_date",
        "duration",
        "reschedule_date",
    ]
    label_columns = {
        "dag_run.execution_date": "Logical Date",