get_ancestor_linkΒΆ
Returns the field on the current model which points to the given “ancestor”. This is possible an indirect link (a pointer to a parent model, which points, eventually, to the ancestor). Used when constructing table joins for model inheritance. Returns None if the model isn’t an ancestor of this one.