def setup_join_cache(sender, **kwargs):
    sender._meta._join_cache = {}
The information needed to join between model fields is something that is
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/sql/query.py/setup_join_cache