(self, app_label: str | None = None)
| 119 | return sorted(nodes) |
| 120 | |
| 121 | def leaf_nodes(self, app_label: str | None = None) -> list[MigrationKey]: |
| 122 | nodes = [ |
| 123 | node.key |
| 124 | for node in self.node_map.values() |
| 125 | if not node.children and (app_label is None or node.key.app_label == app_label) |
| 126 | ] |
| 127 | return sorted(nodes) |
| 128 | |
| 129 | def forwards_plan(self, target: MigrationKey) -> list[MigrationKey]: |
| 130 | if target not in self.nodes: |
no test coverage detected