Closed gannebamm closed 4 years ago
not related to the module. My fault. This works:
class BlogListingPage(TranslatablePage):
"""Liste der Blogposts"""
max_count_per_parent = 1
# add blogposts as children to contexts
def get_context(self, request, *args, **kwargs):
context = super().get_context(request, *args, **kwargs)
context['posts'] = BlogPage.objects.child_of(self).filter(live=True)
return context
Issue summary
For some reason my get_context() does not fetch the correct type of page model. See my code:
How to reproduce?
Use the example above and try to fetch post.blogpage.blogTeaser attribute.
Technical details