-
Notifications
You must be signed in to change notification settings - Fork 153
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
Can’t publish some PNI products #7356
Comments
Hey @TheoChevalier, can you please drop any details you discover in the issue? |
Thanks to Karl’s help, it looks like we’re hitting wagtail/wagtail-localize#346 This should be solvable by using |
I tried the solution outlined in the docs on a local copy of our production data
operations = [
migrations.AlterField(
model_name='buyersguideproductcategory',
name='locale',
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.locale'),
),
migrations.AlterField(
model_name='buyersguideproductcategory',
name='translation_key',
field=models.UUIDField(editable=False, null=True),
),
migrations.AlterUniqueTogether(
name='buyersguideproductcategory',
unique_together=set(),
),
migrations.AlterField(
model_name='update',
name='locale',
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.locale'),
),
migrations.AlterField(
model_name='update',
name='translation_key',
field=models.UUIDField(editable=False, null=True),
),
migrations.AlterUniqueTogether(
name='update',
unique_together=set(),
),
]
from django.db import migrations
from wagtail.core.models import BootstrapTranslatableModel
class Migration(migrations.Migration):
dependencies = [
('wagtailpages', '0035_bootstrap_translatable_snippets'),
]
operations = [
BootstrapTranslatableModel('wagtailpages.BuyersGuideProductCategory'),
BootstrapTranslatableModel('wagtailpages.Update'),
]
operations = [
migrations.AlterField(
model_name='buyersguideproductcategory',
name='locale',
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.locale'),
),
migrations.AlterField(
model_name='buyersguideproductcategory',
name='translation_key',
field=models.UUIDField(default=uuid.uuid4, editable=False),
),
migrations.AlterField(
model_name='update',
name='locale',
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.locale'),
),
migrations.AlterField(
model_name='update',
name='translation_key',
field=models.UUIDField(default=uuid.uuid4, editable=False),
),
migrations.AlterUniqueTogether(
name='buyersguideproductcategory',
unique_together={('translation_key', 'locale')},
),
migrations.AlterUniqueTogether(
name='update',
unique_together={('translation_key', 'locale')},
),
]
|
STR with local setup:
You should get the crash. |
Trying to publish this draft in order to generate a .po file, it crashes with the following:
This is the log from staging (was able to reproduce with https://foundation.mofostaging.net/cms/pages/12512/edit/ )
The text was updated successfully, but these errors were encountered: