wagtail / wagtail-localize

Translation plugin for Wagtail CMS
https://wagtail-localize.org/
Other
226 stars 86 forks source link

Choosers don't work when translating a page #649

Closed tspnn closed 1 year ago

tspnn commented 1 year ago

When translating a document / an image, after selecting an object in the modal window nothing changes.

Model:

class HomePage(Page):
    image = models.ForeignKey(
        "wagtailimages.Image",
        on_delete=models.PROTECT,
        blank=True,
        null=True,
        related_name="+",
    )
    stream = StreamField(
        [
            ("image", ImageChooserBlock()),
            ("document", DocumentChooserBlock()),
        ],
        blank=True,
        null=True,
        use_json_field=True,
    )

    content_panels = Page.content_panels + [
        FieldPanel("image"),
        FieldPanel("stream"),
    ]