Showing 1 of 1 files from the diff.

@@ -113,9 +113,15 @@
Loading
113 113
        # hopefully enable tree traversal operations
114 114
        # to at least partially work.
115 115
        page.depth = parent_page.depth + 1
116 -
        # Puts the page at the maximum possible path
116 +
        # Puts the page at the next available path
117 117
        # for a child of `parent_page`.
118 -
        page.path = Page._get_children_path_interval(parent_page.path)[1]
118 +
        if parent_page.is_leaf():
119 +
            # set the path as the first child of parent_page
120 +
            page.path = page._get_path(parent_page.path, page.depth, 1)
121 +
        else:
122 +
            # add the new page after the last child of parent_page
123 +
            page.path = parent_page.get_last_child()._inc_path()
124 +
119 125
        return page
120 126
121 127
    def get_form(self, page, query_dict):
Files Coverage
client/src 92.85%
wagtail 89.96%
Project Totals (427 files) 90.05%
15368.10
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31stable-postgres-noelasticsearch
backend
15368.12
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-sqlite-elasticsearch2
backend
15368.13
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-postgres-elasticsearch5
backend
15368.14
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj22-postgres-elasticsearch6
backend
15368.15
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj22-postgres-elasticsearch7
backend
15368.11
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-djmaster-postgres-noelasticsearch
backend
15368.18
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-elasticsearch7-emailuser
backend
15368.17
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-elasticsearch7
backend
15368.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-mysql-noelasticsearch
backend
15368.3
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj22-sqlite-noelasticsearch
backend
15368.2
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py36-dj22-postgres-noelasticsearch
backend
15368.5
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj30-mysql-noelasticsearch
backend
15368.4
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py37-dj30-sqlite-noelasticsearch
backend
15368.7
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-noelasticsearch
backend
15368.6
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj30-postgres-noelasticsearch
backend
15368.9
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-noelasticsearch-notz
backend
15368.8
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py38-dj31-postgres-noelasticsearch-emailuser
backend
1
codecov:
2
  notify:
3
    after_n_builds: 10
4
    require_ci_to_pass: no
5

6
coverage:
7
  status:
8
    project: off
9
    patch: off
10

11
comment: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading