Skip to content

Commit

Permalink
Merge pull request #77 from molgen/news-sidebar-translation
Browse files Browse the repository at this point in the history
News sidebar translation
  • Loading branch information
donald authored Mar 4, 2020
2 parents 70da5ad + b37d588 commit 1ba838f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions mpicms/news/migrations/0023_auto_20200304_1706.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 2.2.9 on 2020-03-04 16:06

from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.snippets.blocks


class Migration(migrations.Migration):

dependencies = [
('news', '0022_newsentry_sidebar'),
]

operations = [
migrations.AddField(
model_name='newsentry',
name='sidebar_de',
field=wagtail.core.fields.StreamField([('editor', wagtail.core.blocks.RichTextBlock(features=['h4', 'h5', 'h6', 'bold', 'italic', 'link', 'document-link'], label='Editor')), ('contacts', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('contact', wagtail.snippets.blocks.SnippetChooserBlock('personal.Contact', label='Contact')), ('information', wagtail.core.blocks.TextBlock(label='Information', required=False))]), icon='user', label='Contacts', template='base/blocks/contact_list_block.html'))], blank=True, null=True, verbose_name='Sidebar Content'),
),
migrations.AddField(
model_name='newsentry',
name='sidebar_en',
field=wagtail.core.fields.StreamField([('editor', wagtail.core.blocks.RichTextBlock(features=['h4', 'h5', 'h6', 'bold', 'italic', 'link', 'document-link'], label='Editor')), ('contacts', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('contact', wagtail.snippets.blocks.SnippetChooserBlock('personal.Contact', label='Contact')), ('information', wagtail.core.blocks.TextBlock(label='Information', required=False))]), icon='user', label='Contacts', template='base/blocks/contact_list_block.html'))], blank=True, null=True, verbose_name='Sidebar Content'),
),
]
1 change: 1 addition & 0 deletions mpicms/news/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ class NewsPageTR(TranslationOptions):
class NewsEntryTR(TranslationOptions):
fields = (
'body',
'sidebar',
)

0 comments on commit 1ba838f

Please sign in to comment.