Skip to content

Commit

Permalink
fix: BlogPage may only be created under BlogIndexPage (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax authored May 7, 2024
1 parent 0e379e7 commit 18814ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ietf/blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ class BlogPage(Page, BibliographyMixin, PromoteMixin):
)
CONTENT_FIELD_MAP = {"body": "prepared_body"}

parent_page_types = [
"blog.BlogIndexPage",
]
subpage_types = []

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.filter_topic = None
Expand Down

0 comments on commit 18814ea

Please sign in to comment.