From 22925bf84f39af81e8820fb899fb895987707105 Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Thu, 8 Feb 2018 11:12:22 +0000
Subject: [PATCH] adding introduction field to the fund index page

---
 .../migrations/0006_fundindex_introduction.py | 20 +++++++++++++++++++
 opentech/public/funds/models.py               |  6 ++++++
 2 files changed, 26 insertions(+)
 create mode 100644 opentech/public/funds/migrations/0006_fundindex_introduction.py

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 000000000..a6664aac3
--- /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 ea687ab31..0b3484cce 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)
 
-- 
GitLab