Added support for Django's generic relations.