diff --git a/opentech/public/funds/migrations/0006_fundindex_introduction.py b/opentech/public/funds/migrations/0006_fundindex_introduction.py new file mode 100644 index 0000000000000000000000000000000000000000..a6664aac3ee87756de405867fa70cd262f00092b --- /dev/null +++ b/opentech/public/funds/migrations/0006_fundindex_introduction.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.8 on 2018-02-08 10:49 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('public_funds', '005_link_text_optional'), + ] + + operations = [ + migrations.AddField( + model_name='fundindex', + name='introduction', + field=models.TextField(blank=True), + ), + ] diff --git a/opentech/public/funds/models.py b/opentech/public/funds/models.py index ea687ab31166d37a32ec4cad53a6738a9b11f222..0b3484cce2ecba0bd3dcab54386ada4026b2fd82 100644 --- a/opentech/public/funds/models.py +++ b/opentech/public/funds/models.py @@ -61,6 +61,12 @@ class FundIndex(BasePage): subpage_types = ['FundPage'] parent_page_types = ['home.HomePage'] + introduction = models.TextField(blank=True) + + content_panels = BasePage.content_panels + [ + FieldPanel('introduction') + ] + def get_context(self, request, *args, **kwargs): funds = FundPage.objects.live().public().descendant_of(self)