'Keep track of all known related objects from either QuerySet instance.'

def _merge_known_related_objects(self, other):

    for (field, objects) in other._known_related_objects.items():
        self._known_related_objects.setdefault(field, {}).update(objects)
