Only allow 1 homepage
This commit is contained in:
parent
b1b6aeb818
commit
8e7be79b73
1 changed files with 2 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue