add footer and header placeholders

This commit is contained in:
Arvind Tiwari 2018-03-27 21:04:44 +05:30
commit e7d7cf67b2
6 changed files with 90 additions and 61 deletions

View file

@ -9,11 +9,17 @@ from cms.models.fields import PlaceholderField
class CMSIntegration(models.Model):
name = models.CharField(
max_length=100, unique=True, default='default',
help_text='An optional heading for the Section',
help_text=(
'A unique name for the Integration. This name will be used to '
'fetch the Integration into pages'
)
)
footer_placeholder = PlaceholderField('datacenterlight_footer')
navbar_placeholder = PlaceholderField('datacenterlight_navbar')
def __str__(self):
return self.name
# Models for CMS Plugins