django-extensions/django-extensions — pull request #227 by marcosdiez (2012-07-20 16:15:34+00:00)
Title: dumpscript is more friendly with non exported foreign keys

On the generated script we define a function locate_object which should handle how foreign objects will be located.

This function will not only receive the foreign key but also all the other parameters of the object instance.
If the target object has inheritance, the parent class will be sent as well.

This behavior is 100% backward compatible but much more flexible for non trivial data transfers.