Skip to content

Commit

Permalink
Modified FAQ field to have rich text
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Di Milia committed Jun 29, 2016
1 parent 080fdeb commit 0bad788
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions cms/migrations/0014_html_in_faq_answers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-29 16:12
from __future__ import unicode_literals

from django.db import migrations
import wagtail.wagtailcore.fields


class Migration(migrations.Migration):

dependencies = [
('cms', '0013_programpage_thumbnail_image'),
]

operations = [
migrations.AlterField(
model_name='frequentlyaskedquestion',
name='answer',
field=wagtail.wagtailcore.fields.RichTextField(),
),
]
2 changes: 1 addition & 1 deletion cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class FrequentlyAskedQuestion(Orderable):
"""
program_page = ParentalKey(ProgramPage, related_name='faqs')
question = models.TextField()
answer = models.TextField()
answer = RichTextField()

content_panels = [
MultiFieldPanel(
Expand Down

0 comments on commit 0bad788

Please sign in to comment.