def select_related_descend(field, restricted, requested):
    if not field.rel:
        return False
    if field.rel.parent_link:
        return False
    if restricted and field.name not in requested:
        return False
    if not restricted and field.null:
        return False
    return True
The flags property.
dataset/ETHPy150Open dcramer/django-compositepks/django/db/models/query_utils.py/select_related_descend--crossover with--dataset/ETHPy150Open Microsoft/ApplicationInsights-Python/applicationinsights/channel/contracts/Envelope.py/Envelope.flags