(model, starting_instance)
| 118 | |
| 119 | |
| 120 | def _traverse_ancestors(model, starting_instance): |
| 121 | current_instance = starting_instance |
| 122 | while current_instance is not None: |
| 123 | ancestor_link = current_instance._meta.get_ancestor_link(model) |
| 124 | if not ancestor_link: |
| 125 | yield current_instance, None |
| 126 | break |
| 127 | ancestor = ancestor_link.get_cached_value(current_instance, None) |
| 128 | yield current_instance, ancestor |
| 129 | current_instance = ancestor |
| 130 | |
| 131 | |
| 132 | class ForwardManyToOneDescriptor: |
no test coverage detected