'Generator that yields dictionaries of all models that have this
EasyInstance\'s model as a ForeignKey or ManyToManyField, along with
lists of related objects.'

def related_objects(self):

    for rel_object in (self.model.model._meta.get_all_related_objects() + self.model.model._meta.get_all_related_many_to_many_objects()):
        if (rel_object.model not in self.model.model_list):
            continue
        em = EasyModel(self.model.site, rel_object.model)
        (yield {u'model': em, u'related_field': rel_object.field.verbose_name, u'object_list': [EasyInstance(em, i) for i in getattr(self.instance, rel_object.get_accessor_name()).all()]})
