Hi, Assume the following model:
class A(models.Model): attr1 = models.CharField(...) class B(models.Model): attr1 = models.CharField(...) fk = models.ForeignKey(A) class C(models.Model): attr1 = models.CharField(...) fk = models.ForeignKey(A) class D(models.Model): attr1 = models.CharField(...) fk = models.ForeignKey(C) class E(models.Model): attr1 = models.CharField(...) fk = models.ManyToManyField(A) <etc...> So basically model with any type of relations between items. What I want to do is to get the list similar to: 'B.attr1': 'some value' 'C.attr1': 'some value' 'D.attr1': 'some value' 'E.attr1': 'some value1' 'E.attr1': 'some value2' 'E.attr1': 'some value3' <...> for A where A.attr1 is 'something' Model structure isn't know up front (that's why I represent 'B.attr1' as a string), so looks like I have to build the model map just as django does itself, so wondering if there's any way to access it? Thanks, Rytis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---