Skip to content
Snippets Groups Projects
Commit 0668ac22 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Remove public dependency in apply app

parent 4f0815fd
No related branches found
No related tags found
No related merge requests found
...@@ -20,12 +20,7 @@ class Migration(migrations.Migration): ...@@ -20,12 +20,7 @@ class Migration(migrations.Migration):
name='ApplyHomePage', name='ApplyHomePage',
fields=[ 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')), ('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)), ('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={ options={
'abstract': False, 'abstract': False,
......
...@@ -4,10 +4,8 @@ from wagtail.wagtailsearch import index ...@@ -4,10 +4,8 @@ from wagtail.wagtailsearch import index
from django.db import models from django.db import models
from opentech.public.utils.models import SocialFields, ListingFields
class ApplyHomePage(Page):
class ApplyHomePage(Page, SocialFields, ListingFields): # type: ignore
# Only allow creating HomePages at the root level # Only allow creating HomePages at the root level
parent_page_types = ['wagtailcore.Page'] parent_page_types = ['wagtailcore.Page']
subpage_types = ['funds.FundType'] subpage_types = ['funds.FundType']
...@@ -21,9 +19,3 @@ class ApplyHomePage(Page, SocialFields, ListingFields): # type: ignore ...@@ -21,9 +19,3 @@ class ApplyHomePage(Page, SocialFields, ListingFields): # type: ignore
content_panels = Page.content_panels + [ content_panels = Page.content_panels + [
FieldPanel('strapline'), FieldPanel('strapline'),
] ]
promote_panels = (
Page.promote_panels +
SocialFields.promote_panels +
ListingFields.promote_panels
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment