def demote_joins(self, aliases):
        aliases = list(aliases)
        while aliases:
            alias = aliases.pop(0)
            if self.alias_map[alias].join_type == LOUTER:
                self.alias_map[alias] = self.alias_map[alias].demote()
                parent_alias = self.alias_map[alias].parent_alias
                if self.alias_map[parent_alias].join_type == INNER:
                    aliases.append(parent_alias)
Change join type from LOUTER to INNER for all joins in aliases.
dataset/ETHPy150Open django/django/django/db/models/sql/query.py/Query.demote_joins