Parcourir la source

Fix breadcrumbs missing on blog tag index

Thibaud Colas il y a 1 an
Parent
commit
0e9ef17a2d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      bakerydemo/blog/models.py

+ 1 - 1
bakerydemo/blog/models.py

@@ -188,7 +188,7 @@ class BlogIndexPage(RoutablePageMixin, Page):
             return redirect(self.url)
 
         posts = self.get_posts(tag=tag)
-        context = {"tag": tag, "posts": posts}
+        context = {"self": self, "tag": tag, "posts": posts}
         return render(request, "blog/blog_index_page.html", context)
 
     def serve_preview(self, request, mode_name):