Make tagging example not rely on an unmentioned 'blogs' method - fixes #3602

This commit is contained in:
Matt Westcott 2017-05-30 20:39:30 +01:00
parent 609683ea2c
commit 2f2bfa0159

View file

@ -171,7 +171,7 @@ Now that we have the many-to-many tag relationship in place, we can fit in a way
...
def serve(self, request):
# Get blogs
blogs = self.blogs
blogs = BlogPage.objects.child_of(self).live()
# Filter by tag
tag = request.GET.get('tag')