Only allow 1 homepage

This commit is contained in:
Jake Howard 2022-06-14 20:57:50 +01:00
parent b1b6aeb818
commit 8e7be79b73
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -5,6 +5,8 @@ from website.common.models import BasePage
class HomePage(BasePage):
max_count = 1
heading = models.CharField(max_length=128, blank=True)
content_panels = BasePage.content_panels + [FieldPanel("heading")]