From b536af96abe799ff4757a964616a82ab3bf6caca Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Mon, 13 Mar 2017 17:56:33 +0100 Subject: [PATCH] Frontpage root level only --- .../migrations/0008_auto_20170313_1755.py | 19 +++++++++++++++++++ publichealth/home/models.py | 1 + 2 files changed, 20 insertions(+) create mode 100644 publichealth/home/migrations/0008_auto_20170313_1755.py diff --git a/publichealth/home/migrations/0008_auto_20170313_1755.py b/publichealth/home/migrations/0008_auto_20170313_1755.py new file mode 100644 index 0000000..25d0f23 --- /dev/null +++ b/publichealth/home/migrations/0008_auto_20170313_1755.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.6 on 2017-03-13 16:55 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('home', '0007_articlepage_date'), + ] + + operations = [ + migrations.AlterModelOptions( + name='homepage', + options={'verbose_name': 'Frontpage'}, + ), + ] diff --git a/publichealth/home/models.py b/publichealth/home/models.py index e418c0c..c37654e 100644 --- a/publichealth/home/models.py +++ b/publichealth/home/models.py @@ -184,5 +184,6 @@ class HomePage(Page): context['featured'] = featured return context + parent_page_types = [] class Meta: verbose_name = "Frontpage" \ No newline at end of file