def METHOD_NAME(client, schema, create_patents_table, schema_name):
    table = create_patents_table('Table 2', schema_name=schema_name)
    first_non_primary_column = table.columns.order_by('attnum')[1]
    expected_preview_template = f'{{{first_non_primary_column.id}}}'
    column_order = [1, 2, 3]
    table.settings.column_order = [1, 2, 3]
    table.settings.save()
    response = client.get(
        f"/api/db/v0/tables/{table.id}/settings/"
    )
    response_data = response.json()
    results = response_data['results']
    assert response.status_code == 200
    assert response_data['count'] == 1
    assert results[0]['preview_settings']['template'] == expected_preview_template
    assert results[0]['preview_settings']['customized'] is False
    assert results[0]['column_order'] == column_order