Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge 94d2f4f into 2137b14
Browse files Browse the repository at this point in the history
  • Loading branch information
codiebeulaine committed Feb 12, 2018
2 parents 2137b14 + 94d2f4f commit 872514c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions molo/surveys/migrations/0025_add homepage introduction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-12 16:56
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('surveys', '0024_add_molo_page'),
]

operations = [
migrations.AddField(
model_name='molosurveypage',
name='homepage_introduction',
field=models.TextField(blank=True),
),
]
2 changes: 2 additions & 0 deletions molo/surveys/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class MoloSurveyPage(
base_form_class = MoloSurveyForm

introduction = TextField(blank=True)
homepage_introduction = TextField(blank=True)
image = models.ForeignKey(
'wagtailimages.Image',
null=True,
Expand Down Expand Up @@ -178,6 +179,7 @@ class MoloSurveyPage(
content_panels = surveys_models.AbstractSurvey.content_panels + [
ImageChooserPanel('image'),
FieldPanel('introduction', classname='full'),
FieldPanel('homepage_introduction', classname='full'),
FieldPanel('homepage_button_text', classname='full'),
StreamFieldPanel('description'),
InlinePanel('survey_form_fields', label='Form fields'),
Expand Down

0 comments on commit 872514c

Please sign in to comment.