diff --git a/opentech/apply/home/migrations/0001_initial.py b/opentech/apply/home/migrations/0001_initial.py index 83d9b3f72555b467e487825b6c3afc566981fdd8..7823ea812bb459cfc8a16c43b6922f6ba1541e75 100644 --- a/opentech/apply/home/migrations/0001_initial.py +++ b/opentech/apply/home/migrations/0001_initial.py @@ -20,12 +20,7 @@ class Migration(migrations.Migration): name='ApplyHomePage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), - ('social_text', models.CharField(blank=True, max_length=255)), - ('listing_title', models.CharField(blank=True, help_text='Override the page title used when this page appears in listings', max_length=255)), - ('listing_summary', models.CharField(blank=True, help_text="The text summary used when this page appears in listings. It's also used as the description for search engines if the 'Search description' field above is not defined.", max_length=255)), ('strapline', models.CharField(blank=True, max_length=255)), - ('listing_image', models.ForeignKey(blank=True, help_text='Choose the image you wish to be displayed when this page appears in listings', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage')), - ('social_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage')), ], options={ 'abstract': False, diff --git a/opentech/apply/home/models.py b/opentech/apply/home/models.py index cc8bda303da13bd932b2e7ef6312e10417d9ce97..31e556ede43a1726b14f838ef1c6e3fa91ce3d08 100644 --- a/opentech/apply/home/models.py +++ b/opentech/apply/home/models.py @@ -4,10 +4,8 @@ from wagtail.wagtailsearch import index from django.db import models -from opentech.public.utils.models import SocialFields, ListingFields - -class ApplyHomePage(Page, SocialFields, ListingFields): # type: ignore +class ApplyHomePage(Page): # Only allow creating HomePages at the root level parent_page_types = ['wagtailcore.Page'] subpage_types = ['funds.FundType'] @@ -21,9 +19,3 @@ class ApplyHomePage(Page, SocialFields, ListingFields): # type: ignore content_panels = Page.content_panels + [ FieldPanel('strapline'), ] - - promote_panels = ( - Page.promote_panels + - SocialFields.promote_panels + - ListingFields.promote_panels - )