What is the difference between ChildPage.objects.child_of(self) and ParentPage.get_children()?
问题 I think that ChildPage.objects.child_of(self) and ParentPage.get_children() produce same result because subpage_types of ParentPage is just one ['ChildPage'] . But when I try to filter the result of ParentPage.get_children() there is an error. def get_context(self, request, *args, **kwargs): context = super().get_context(request, *args, **kwargs) child = self.get_children().live().public() # <- don't works child = ChildPage.objects.child_of(self).live().public() # <- works if request.GET.get(