Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translatable PNI fields #7075

Merged
merged 1 commit into from
Jul 13, 2021
Merged
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
25 changes: 24 additions & 1 deletion network-api/networkapi/wagtailpages/pagemodels/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,17 @@ def get_export_fields(self):
],
)

translatable_fields = ProductPage.translatable_fields + [
TranslatableField('handles_recordings_how'),
SynchronizedField('recording_alert'),
TranslatableField('recording_alert_helptext'),
SynchronizedField('medical_privacy_compliant'),
TranslatableField('medical_privacy_compliant_helptext'),
SynchronizedField('host_controls'),
SynchronizedField('easy_to_learn_and_use'),
TranslatableField('easy_to_learn_and_use_helptext'),
]

@property
def product_type(self):
return "software"
Expand Down Expand Up @@ -1251,7 +1262,19 @@ def get_export_fields(self):
],
)

# TODO: Needs translatable_fields
translatable_fields = ProductPage.translatable_fields + [
TranslatableField('how_can_you_control_your_data'),
SynchronizedField('data_control_policy_is_bad'),
SynchronizedField('company_track_record'),
SynchronizedField('track_record_is_bad'),
TranslatableField('track_record_details'),
SynchronizedField('offline_capable'),
TranslatableField('offline_use_description'),
SynchronizedField('uses_ai'),
SynchronizedField('ai_uses_personal_data'),
SynchronizedField('ai_is_transparent'),
TranslatableField('ai_helptext'),
]

@property
def product_type(self):
Expand Down