'get the actual favorite objects for a user as a dict by content_type'

def bulk_favorite_objects(self, user):

    favs = {}
    for m in (Document, Map, Layer, get_user_model()):
        ct = ContentType.objects.get_for_model(m)
        f = self.favorites_for_user(user).filter(content_type=ct)
        favs[ct.name] = m.objects.filter(id__in=f.values('object_id'))
    return favs
