django-nonrel/djangotoolbox — pull request #20 by dragonx (2012-03-13 03:29:11+00:00)
Title: Handle ListFields with ForeignKeys referencing strings instead of actual classes.

Before this change, the AbstractIterableField could only handle a related field where the relation was actually defined as a class.

It wouldn't handle ForeignKeys defined with a string with the name of the related class.
If we get a ForeignKey field where the related class is not defined, register a signal handler to handle class registration, and complete the ForeignKey related field when the related class is found.
This fix only handles ForeignKeys, right now, but it ough to be improved to handle other RelatedFields as well.