def flatten(self):
        yield self
        for expr in self.get_source_expressions():
            if expr:
                for inner_expr in expr.flatten():
                    yield inner_expr
Recursively yield this expression and all subexpressions, in
dataset/ETHPy150Open django/django/django/db/models/expressions.py/BaseExpression.flatten