I have a model on which django-mptt works with the simple test data. However, when I load the production data (where I have seen that get_ancestor is not working) to my dev machine, get_ancestor returns [].
In [5]: for p in Page.objects.filter(parent__isnull=False): ...: print p, p.get_ancestors() ...: ...: ... |__categories [] .. |__preparation-tips [] ... These models have a parent but get_ancestors() returns [] Does anyone have a clue why the data would break this method? --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---