From 0668ac22a20974667006bdf4788f9a8ce17e669e Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Tue, 9 Jan 2018 17:43:12 +0000
Subject: [PATCH] Remove public dependency in apply app

---
 opentech/apply/home/migrations/0001_initial.py |  5 -----
 opentech/apply/home/models.py                  | 10 +---------
 2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/opentech/apply/home/migrations/0001_initial.py b/opentech/apply/home/migrations/0001_initial.py
index 83d9b3f72..7823ea812 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 cc8bda303..31e556ede 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
-    )
-- 
GitLab