-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/praekeltfoundation/contentrepo
- Loading branch information
Showing
7 changed files
with
199 additions
and
7 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
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,25 @@ | ||
# Generated by Django 4.2.9 on 2024-01-10 09:41 | ||
|
||
import django.core.validators | ||
import wagtail.blocks | ||
import wagtail.documents.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
from django.db import migrations | ||
|
||
import home.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('home', '0040_alter_contentpage_whatsapp_template_category'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='contentpage', | ||
name='whatsapp_body', | ||
field=wagtail.fields.StreamField([('Whatsapp_Message', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(icon='document', required=False)), ('media', home.models.MediaBlock(icon='media', required=False)), ('message', wagtail.blocks.TextBlock(help_text='each text message cannot exceed 4096 characters, messages with media cannot exceed 1024 characters.', validators=(django.core.validators.MaxLengthValidator(4096), django.core.validators.RegexValidator(code='invalid_variables', inverse_match=True, message='Placeholders are not digits or not in consecutive order starting with {{1}} ', regex='{{\\s*\\w+\\s*}}')))), ('example_values', wagtail.blocks.ListBlock(wagtail.blocks.CharBlock(label='Example Value'), default=[], help_text='Please add example values for all variables used in a WhatsApp template', label='Variable Example Values')), ('variation_messages', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('variation_restrictions', wagtail.blocks.StreamBlock([('gender', wagtail.blocks.ChoiceBlock(choices=home.models.get_gender_choices)), ('age', wagtail.blocks.ChoiceBlock(choices=home.models.get_age_choices)), ('relationship', wagtail.blocks.ChoiceBlock(choices=home.models.get_relationship_choices))], help_text='Restrict this variation to users with this profile value. Valid values must be added to the Site Settings', max_num=1, min_num=1, required=False, use_json_field=True)), ('message', wagtail.blocks.TextBlock(help_text='each message cannot exceed 4096 characters.', validators=(django.core.validators.MaxLengthValidator(4096),)))]), default=[])), ('next_prompt', wagtail.blocks.CharBlock(help_text='prompt text for next message', required=False, validators=(django.core.validators.MaxLengthValidator(20),))), ('buttons', wagtail.blocks.StreamBlock([('next_message', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(help_text='text for the button, up to 20 characters.', validators=(django.core.validators.MaxLengthValidator(20),)))])), ('go_to_page', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(help_text='text for the button, up to 20 characters.', validators=(django.core.validators.MaxLengthValidator(20),))), ('page', wagtail.blocks.PageChooserBlock(help_text='page the button should go to'))]))], max_num=3, required=False))], help_text='Each message will be sent with the text and media'))], blank=True, null=True, use_json_field=True), | ||
), | ||
] |
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,12 @@ | ||
# Generated by Django 4.2.9 on 2024-01-23 11:02 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("home", "0041_alter_contentpage_whatsapp_body"), | ||
("home", "0044_merge_20240118_1014"), | ||
] | ||
|
||
operations = [] |
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
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,51 @@ | ||
anyascii==0.3.2 | ||
asgiref==3.7.2 | ||
attrs==23.2.0 | ||
beautifulsoup4==4.11.2 | ||
certifi==2023.11.17 | ||
charset-normalizer==3.3.2 | ||
defusedxml==0.7.1 | ||
dj-database-url==2.1.0 | ||
Django==4.2.9 | ||
django-environ==0.11.2 | ||
django-filter==23.5 | ||
django-modelcluster==6.2.1 | ||
django-permissionedforms==0.1 | ||
django-taggit==4.0.0 | ||
django-treebeard==4.7 | ||
djangorestframework==3.14.0 | ||
draftjs-exporter==2.1.7 | ||
drf-spectacular==0.27.0 | ||
environ==1.0 | ||
et-xmlfile==1.1.0 | ||
filetype==1.2.0 | ||
html5lib==1.1 | ||
idna==3.6 | ||
inflection==0.5.1 | ||
jsonschema==4.20.0 | ||
jsonschema-specifications==2023.12.1 | ||
l18n==2021.3 | ||
lxml==5.1.0 | ||
openpyxl==3.1.2 | ||
pillow==10.2.0 | ||
pillow_heif==0.14.0 | ||
psycopg==3.1.17 | ||
psycopg2==2.9.9 | ||
python-docx==1.1.0 | ||
pytz==2023.3.post1 | ||
PyYAML==6.0.1 | ||
referencing==0.32.1 | ||
requests==2.31.0 | ||
rpds-py==0.16.2 | ||
six==1.16.0 | ||
soupsieve==2.5 | ||
sqlparse==0.4.4 | ||
telepath==0.3.1 | ||
typing_extensions==4.9.0 | ||
uritemplate==4.1.1 | ||
urllib3==2.1.0 | ||
wagtail==5.2.2 | ||
wagtail-content-import==0.11.0 | ||
wagtailmedia==0.14.5 | ||
webencodings==0.5.1 | ||
Willow==1.6.3 |