Create a base page model for all other to inherit

This commit is contained in:
Jake Howard 2022-06-10 15:48:07 +01:00
parent 67b8965e1f
commit 3986b30a64
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 10 additions and 5 deletions

View file

8
website/common/models.py Normal file
View file

@ -0,0 +1,8 @@
from django.db import models
from wagtail.models import Page
class BasePage(Page):
class Meta:
abstract = True

View file

@ -1,7 +1,4 @@
from django.db import models from website.common.models import BasePage
from wagtail.models import Page class HomePage(BasePage):
class HomePage(Page):
pass pass