Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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),
),
]
6 changes: 4 additions & 2 deletions network-api/networkapi/wagtailpages/pagemodels/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ <h1 class="h1-heading col-12">{{product.title}}</h1>
{% endif %}
</div>
{% include "fragments/research_details.html" with review_date=product.review_date time_researched=product.time_researched mozilla_says=product.mozilla_says %}
<div class="col-12"><p class="body mb-0">{{product.blurb}}</p></div>
<div class="col-12 body">{{product.blurb | richtext}}</div>
</div>

<div class="row mb-4">
<div class="col-12 worst-case">
<h2 class="h3-heading">{% trans "What could happen if something goes wrong?" %}</h2>
<p class="mb-0">{{product.worst_case}}</p>
<div class="body">{{product.worst_case | richtext}}</div>
</div>
</div>

Expand Down