I found bug in Django ORM. In function select_realted is a parameter 'depth' which works wrong. If I set depth=1, Django getting related tables with depth=2.
The bug is in file db/models/query.py in function fill_table_cache, where is: if max_depth and cur_depth > max_depth: return None and should be: if max_depth and cur_depth >= max_depth: return None --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---