On Feb 10, 8:12 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-02-09 at 23:22 -0800, abe wrote: > > > > I really tried hard to understand your problem, but then my brain > > > started to leak out of my ears and I had to stop. :-( [...] > > 'model1__model2__field_of_model2' > > > any simple ways to find those? > > You could operate iteratively: start with a list of all your models that > are related to the current one. Do the same process to those and store > any *new* model names that appear. Repeat until no new names appear. > > The reason you need to track new names (versus all names) is to avoid > infinite loops (the simple case being a model that has a ForeignKey to > itself). How to represent loops in your result page is something you'll > need to think about. > > Regards, > Malcolm I'll try it, thanks a lot! abe --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---