-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PNI model changes into Main branch (#7653)
- Loading branch information
Showing
7 changed files
with
288 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
network-api/networkapi/wagtailpages/migrations/0043_auto_20211020_2230.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Generated by Django 3.1.11 on 2021-10-20 22:30 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import networkapi.wagtailpages.fields | ||
import wagtail.core.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('wagtailimages', '0023_add_choose_permissions'), | ||
('wagtailpages', '0042_add_callpower_cta'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='buyersguideproductcategory', | ||
options={'ordering': ['sort_order', '-parent__name', 'name'], 'verbose_name': 'Buyers Guide Product Category', 'verbose_name_plural': 'Buyers Guide Product Categories'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='productupdates', | ||
options={'ordering': ['sort_order'], 'verbose_name': 'Product Update'}, | ||
), | ||
migrations.RemoveField( | ||
model_name='buyersguideproductcategory', | ||
name='og_image', | ||
), | ||
migrations.RemoveField( | ||
model_name='productpage', | ||
name='email', | ||
), | ||
migrations.RemoveField( | ||
model_name='productpage', | ||
name='live_chat', | ||
), | ||
migrations.RemoveField( | ||
model_name='productpage', | ||
name='phone_number', | ||
), | ||
migrations.RemoveField( | ||
model_name='productpage', | ||
name='twitter', | ||
), | ||
migrations.AddField( | ||
model_name='buyersguideproductcategory', | ||
name='parent', | ||
field=models.ForeignKey(blank=True, help_text='Leave this blank for a top-level category, or pick another category to nest this under', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailpages.buyersguideproductcategory'), | ||
), | ||
migrations.AddField( | ||
model_name='buyersguideproductcategory', | ||
name='share_image', | ||
field=models.ForeignKey(blank=True, help_text='Optional image that will apear when category page is shared.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='wagtailimages.image', verbose_name='Share Image'), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_can_user_control', | ||
field=networkapi.wagtailpages.fields.ExtendedYesNoField(help_text='Does the user have control over the AI features?'), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_can_user_control_helptext', | ||
field=models.TextField(blank=True, help_text='Helptext that will appear in the can user control section.', max_length=5000), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_is_transparent_helptext', | ||
field=models.TextField(blank=True, help_text='Helptext that will appear in the AI is transparent section.', max_length=5000), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_is_untrustworthy', | ||
field=networkapi.wagtailpages.fields.ExtendedYesNoField(help_text='Is the AI untrustworthy?'), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_is_untrustworthy_ding', | ||
field=models.BooleanField(default=False, help_text='Tick this box if the AI invades privacy or behaves unethically.'), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_is_untrustworthy_helptext', | ||
field=models.TextField(blank=True, help_text='Helptext that will appear in the AI is untrustworthy section.', max_length=5000), | ||
), | ||
migrations.AddField( | ||
model_name='generalproductpage', | ||
name='ai_what_can_it_do', | ||
field=wagtail.core.fields.RichTextField(blank=True, help_text='What kind of decisions does this AI make about you or for you?'), | ||
), | ||
migrations.AddField( | ||
model_name='productpage', | ||
name='mozilla_says', | ||
field=models.BooleanField(blank=True, help_text='Whether or not Mozilla would recommend this product. Will appear as a thumbs up/down/middle.', null=True), | ||
), | ||
migrations.AddField( | ||
model_name='productpage', | ||
name='time_researched', | ||
field=models.PositiveIntegerField(default=0, help_text='How many hours were spent researching this product?'), | ||
), | ||
migrations.AddField( | ||
model_name='productpage', | ||
name='tips_to_protect_yourself', | ||
field=wagtail.core.fields.RichTextField(blank=True), | ||
), | ||
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), | ||
), | ||
] |
Oops, something went wrong.