소스 검색

Remove outdated workaround for BlogIndexPage preview

Sage Abdullah 1 개월 전
부모
커밋
4317101a4a
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      bakerydemo/blog/models.py

+ 0 - 4
bakerydemo/blog/models.py

@@ -210,10 +210,6 @@ class BlogIndexPage(CustomHeadlessMixin, RoutablePageMixin, Page):
         context = {"self": self, "tag": tag, "posts": posts}
         context = {"self": self, "tag": tag, "posts": posts}
         return render(request, "blog/blog_index_page.html", context)
         return render(request, "blog/blog_index_page.html", context)
 
 
-    def serve_preview(self, request, mode_name):
-        # Needed for previews to work
-        return self.serve(request)
-
     # Returns the child BlogPage objects for this BlogPageIndex.
     # Returns the child BlogPage objects for this BlogPageIndex.
     # If a tag is used then it will filter the posts by tag.
     # If a tag is used then it will filter the posts by tag.
     def get_posts(self, tag=None):
     def get_posts(self, tag=None):