(expr)
| 79 | |
| 80 | |
| 81 | def get_paths_from_expression(expr): |
| 82 | if isinstance(expr, F): |
| 83 | yield expr.name |
| 84 | elif hasattr(expr, "flatten"): |
| 85 | for child in expr.flatten(): |
| 86 | if isinstance(child, F): |
| 87 | yield child.name |
| 88 | elif isinstance(child, Q): |
| 89 | yield from get_children_from_q(child) |
| 90 | |
| 91 | |
| 92 | def get_children_from_q(q): |
no test coverage detected