diff --git a/network-api/networkapi/wagtailpages/migrations/0043_auto_20211011_2340.py b/network-api/networkapi/wagtailpages/migrations/0043_auto_20211011_2340.py new file mode 100644 index 00000000000..f146cacd5a5 --- /dev/null +++ b/network-api/networkapi/wagtailpages/migrations/0043_auto_20211011_2340.py @@ -0,0 +1,24 @@ +# Generated by Django 3.1.11 on 2021-10-11 23:40 + +from django.db import migrations +import wagtail.core.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('wagtailpages', '0042_productpage_tips_to_protect_yourself'), + ] + + operations = [ + migrations.AlterField( + model_name='productpage', + name='blurb', + field=wagtail.core.fields.RichTextField(blank=True, help_text='Description of the product', max_length=5000), + ), + migrations.AlterField( + model_name='productpage', + name='worst_case', + field=wagtail.core.fields.RichTextField(blank=True, help_text="What's the worst thing that could happen by using this product?", max_length=5000), + ), + ] diff --git a/network-api/networkapi/wagtailpages/pagemodels/products.py b/network-api/networkapi/wagtailpages/pagemodels/products.py index ae1bf16bdf3..2b11f63c39f 100644 --- a/network-api/networkapi/wagtailpages/pagemodels/products.py +++ b/network-api/networkapi/wagtailpages/pagemodels/products.py @@ -416,8 +416,9 @@ class ProductPage(AirtableMixin, FoundationMetadataPageMixin, Page): help_text='Name of Company', blank=True, ) - blurb = models.TextField( + blurb = RichTextField( max_length=5000, + features=['bold', 'italic', 'link'], help_text='Description of the product', blank=True ) @@ -439,8 +440,9 @@ class ProductPage(AirtableMixin, FoundationMetadataPageMixin, Page): related_name='+', help_text='Image representing this product', ) - worst_case = models.TextField( + worst_case = RichTextField( max_length=5000, + features=['bold', 'italic', 'link'], help_text="What's the worst thing that could happen by using this product?", blank=True, ) diff --git a/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html b/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html index a0776f228e3..24fd34e5518 100644 --- a/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html +++ b/network-api/networkapi/wagtailpages/templates/buyersguide/product_page.html @@ -74,13 +74,13 @@
{{product.blurb}}
{{product.worst_case}}
+