Skip to content
Permalink
Browse files

Localize blog post author field (fixes #3667) (#3668)

  • Loading branch information...
TheoChevalier authored and Pomax committed Sep 18, 2019
1 parent d625906 commit 57180ba187f050f79fa8c7770cb58b6266662a27
@@ -0,0 +1,48 @@
# Generated by Django 2.2.4 on 2019-09-18 17:11

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('wagtailpages', '0082_homepagefeaturedblogs'),
]

operations = [
migrations.AddField(
model_name='blogpage',
name='author_de',
field=models.CharField(max_length=70, null=True, verbose_name='Author'),
),
migrations.AddField(
model_name='blogpage',
name='author_en',
field=models.CharField(max_length=70, null=True, verbose_name='Author'),
),
migrations.AddField(
model_name='blogpage',
name='author_es',
field=models.CharField(max_length=70, null=True, verbose_name='Author'),
),
migrations.AddField(
model_name='blogpage',
name='author_fr',
field=models.CharField(max_length=70, null=True, verbose_name='Author'),
),
migrations.AddField(
model_name='blogpage',
name='author_pl',
field=models.CharField(max_length=70, null=True, verbose_name='Author'),
),
migrations.AddField(
model_name='blogpage',
name='author_pt',
field=models.CharField(max_length=70, null=True, verbose_name='Author'),
),
migrations.AlterField(
model_name='blogpage',
name='author',
field=models.CharField(max_length=70, verbose_name='Author'),
),
]
@@ -797,7 +797,7 @@ class BlogPage(FoundationMetadataPageMixin, Page):

author = models.CharField(
verbose_name='Author',
max_length=50,
max_length=70,
blank=False,
)

@@ -169,5 +169,6 @@ class PeoplePageTR(TranslationOptions):
@register(BlogPage)
class BlogPageTR(TranslationOptions):
fields = (
'author',
'body',
)

0 comments on commit 57180ba

Please sign in to comment.
You can’t perform that action at this time.