Hehe, but again, there would be a infinite loop in django\db\models\query.py in get_cached_row
That's because this record in Here's my patch ===================================== def get_cached_row(klass, row, index_start, processed={}): "Helper function that recursively returns an object with cache filled" if not processed.has_key(klass): processed[klass] = [] processed_fields = processed[klass] index_end = index_start + len(klass._meta.fields) obj = klass(*row[index_start:index_end]) for f in klass._meta.fields: if f.rel and not f.null and f not in processed_fields: processed_fields.append(f) rel_obj, index_end = get_cached_row(f.rel.to, row, index_end) setattr(obj, f.get_cache_name(), rel_obj) return obj, index_end ======================================== It works correctly! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---