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

localise the primarypage intro field #2954

Merged
merged 5 commits into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from 3 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,45 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-04-03 15:55
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('wagtailpages', '0064_auto_20190329_2313'),
]

operations = [
migrations.AddField(
model_name='primarypage',
name='intro_de',
field=models.CharField(blank=True, help_text='Intro paragraph to show in hero cutout box', max_length=250, null=True),
),
migrations.AddField(
model_name='primarypage',
name='intro_en',
field=models.CharField(blank=True, help_text='Intro paragraph to show in hero cutout box', max_length=250, null=True),
),
migrations.AddField(
model_name='primarypage',
name='intro_es',
field=models.CharField(blank=True, help_text='Intro paragraph to show in hero cutout box', max_length=250, null=True),
),
migrations.AddField(
model_name='primarypage',
name='intro_fr',
field=models.CharField(blank=True, help_text='Intro paragraph to show in hero cutout box', max_length=250, null=True),
),
migrations.AddField(
model_name='primarypage',
name='intro_pl',
field=models.CharField(blank=True, help_text='Intro paragraph to show in hero cutout box', max_length=250, null=True),
),
migrations.AddField(
model_name='primarypage',
name='intro_pt',
field=models.CharField(blank=True, help_text='Intro paragraph to show in hero cutout box', max_length=250, null=True),
),
]
1 change: 1 addition & 0 deletions network-api/networkapi/wagtailpages/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class PetitionTR(TranslationOptions):
class PrimaryPageTR(TranslationOptions):
fields = (
'header',
'intro',
'body',
)

Expand Down