Skip to content

Commit

Permalink
BlogPage may only be created under BlogIndexPage
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax committed Apr 3, 2024
1 parent 0dcbdc2 commit 41448ae
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 @@ -157,6 +157,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 41448ae

Please sign in to comment.