def METHOD_NAME(self, query: Query):
    """Add outer joins to the query"""
    if self.outerjoins_to_add:
        for table, condition in self.outerjoins_to_add:
            query = query.outerjoin(table, condition)
    return query