(field)
| 502 | |
| 503 | |
| 504 | def get_model_from_relation(field): |
| 505 | if hasattr(field, "path_infos"): |
| 506 | return field.path_infos[-1].to_opts.model |
| 507 | else: |
| 508 | raise NotRelationField |
| 509 | |
| 510 | |
| 511 | def reverse_field_path(model, path): |
no outgoing calls
no test coverage detected