There is also django.db.models.sql.datastructures.Col class which seems close to this - is it possible to merge Col and ColumnNode classes?