Skip to content

Commit 4317101

Browse files
committed
Remove outdated workaround for BlogIndexPage preview
1 parent 830a0cf commit 4317101

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bakerydemo/blog/models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@ def tag_archive(self, request, tag=None):
210210
context = {"self": self, "tag": tag, "posts": posts}
211211
return render(request, "blog/blog_index_page.html", context)
212212

213-
def serve_preview(self, request, mode_name):
214-
# Needed for previews to work
215-
return self.serve(request)
216-
217213
# Returns the child BlogPage objects for this BlogPageIndex.
218214
# If a tag is used then it will filter the posts by tag.
219215
def get_posts(self, tag=None):

0 commit comments

Comments
 (0)