Hi, I am trying to get a node in a hierarchy by looking at its parents' slugs.
For example, in a case where 'a' is the parent of 'b' and 'b' is the parent of 'c', I would like to grab the node 'c' as follows: Category.objects.get(slug = 'c', parent__slug = 'b', parent__parent__slug = 'a') Is there a way to dynamically synthesize the get() part according to the depth of the hierarchy? Thanks, oMat --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---