Support multiple levels of Rubriken
This commit is contained in:
parent
8f24b43229
commit
03d053a626
2 changed files with 30 additions and 2 deletions
28
publichealth/home/migrations/0009_auto_20170406_1449.py
Normal file
28
publichealth/home/migrations/0009_auto_20170406_1449.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.6 on 2017-04-06 12:49
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
import wagtail.wagtailcore.blocks
|
||||
import wagtail.wagtailcore.fields
|
||||
import wagtail.wagtailimages.blocks
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('home', '0008_auto_20170313_1755'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='homepage',
|
||||
name='infos_de',
|
||||
field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('summary', wagtail.wagtailcore.blocks.RichTextBlock(required=True)), ('action', wagtail.wagtailcore.blocks.CharBlock()), ('url', wagtail.wagtailcore.blocks.URLBlock())))),), blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='homepage',
|
||||
name='infos_fr',
|
||||
field=wagtail.wagtailcore.fields.StreamField((('info', wagtail.wagtailcore.blocks.StructBlock((('title', wagtail.wagtailcore.blocks.CharBlock(required=True)), ('photo', wagtail.wagtailimages.blocks.ImageChooserBlock()), ('summary', wagtail.wagtailcore.blocks.RichTextBlock(required=True)), ('action', wagtail.wagtailcore.blocks.CharBlock()), ('url', wagtail.wagtailcore.blocks.URLBlock())))),), blank=True, null=True),
|
||||
),
|
||||
]
|
|
@ -43,7 +43,7 @@ class ArticleIndexPage(Page):
|
|||
context['articles'] = articles
|
||||
return context
|
||||
|
||||
subpage_types = ['home.ArticlePage']
|
||||
subpage_types = ['home.ArticlePage', 'home.ArticleIndexPage']
|
||||
class Meta:
|
||||
verbose_name = "Rubrik"
|
||||
|
||||
|
@ -197,4 +197,4 @@ class HomePage(Page):
|
|||
|
||||
parent_page_types = []
|
||||
class Meta:
|
||||
verbose_name = "Frontpage"
|
||||
verbose_name = "Frontpage"
|
||||
|
|
Loading…
Reference in a new issue