@property
    def target_field(self):
        target_fields = self.get_path_info()[-1].target_fields
        if len(target_fields) > 1:
            raise exceptions.FieldError(
                "The relation has multiple target fields, but only single target field was asked for")
        return target_fields[0]
When filtering against this relation, returns the field on the remote
dataset/ETHPy150Open django/django/django/db/models/fields/related.py/RelatedField.target_field