> How would this model be implemented in Django? The API provides a > special case where a recursive relationship back to the current entity > is denoted by ForeignKey('self'), but for the more general case of a > circular relationship I can't see a way to avoid the NameError. > > I know in SqlObject the class's name can be used instead of a > reference to the class, providing late binding to enable this kind of > model.
There is no current way of doing this. Perhaps some of the main developers for Django could extrapolate further on this, but I believe the idea is partially to restrict such "circular" relationships as they are considered poor database/model design.