Procházet zdrojové kódy

Fix breadcrumbs missing on blog tag index

Thibaud Colas před 1 rokem
rodič
revize
0e9ef17a2d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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):